Skip to content

Commit

Permalink
Merge pull request #5 from mortenmj/mmj/rename-libclang_rt-files
Browse files Browse the repository at this point in the history
Rename libclang_rt files
  • Loading branch information
dzbarsky authored Dec 22, 2024
2 parents 5fcd53b + eb08c02 commit 3a11761
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -65,28 +65,26 @@ pkg_files(
)

copy_file(
name = "copy_libclang_rt.profile_linux_aarch64",
name = "copy_libclang_rt.profile_aarch64",
src = "@llvm-project//compiler-rt:profile",
out = "libclang_rt.profile_linux-aarch64.a",
out = "libclang_rt.profile-aarch64.a",
)

pkg_files(
name = "libclang_rt.profile_linux_aarch64",
srcs = ["libclang_rt.profile_linux-aarch64.a"],
name = "libclang_rt.profile_aarch64",
srcs = ["libclang_rt.profile-aarch64.a"],
prefix = LIB_PREFIX + "linux",
)

# TODO(zbarsky): Not sure if this is the right name.
# Hopefully someone yells at me if it's wrong.
copy_file(
name = "copy_libclang_rt.profile_linux_x84_64",
name = "copy_libclang_rt.profile_x84_64",
src = "@llvm-project//compiler-rt:profile",
out = "libclang_rt.profile_linux-x86_64.a",
out = "libclang_rt.profile-x86_64.a",
)

pkg_files(
name = "libclang_rt.profile_linux_x86_64",
srcs = ["libclang_rt.profile_linux-x86_64.a"],
name = "libclang_rt.profile_x86_64",
srcs = ["libclang_rt.profile-x86_64.a"],
prefix = LIB_PREFIX + "linux",
)

Expand All @@ -99,8 +97,8 @@ pkg_files(
"@llvm-raw//:libcxx_include",
] + select({
"@bazel_tools//src/conditions:darwin": [":libclang_rt.profile_osx"],
"@bazel_tools//src/conditions:linux_aarch64": [":libclang_rt.profile_linux_aarch64"],
"@bazel_tools//src/conditions:linux_x86_64": [":libclang_rt.profile_linux_x86_64"],
"@bazel_tools//src/conditions:linux_aarch64": [":libclang_rt.profile_aarch64"],
"@bazel_tools//src/conditions:linux_x86_64": [":libclang_rt.profile_x86_64"],
}),
empty_files = props.get("extra_empty_files", []),
extension = ".tar.xz",
Expand Down

0 comments on commit 3a11761

Please sign in to comment.