diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2022-06-18 07:15:40 +0300 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2022-06-18 07:35:23 +0300 |
commit | 0716b3ec09f4c4f2dae6a29c2862c1139abbe416 (patch) | |
tree | 3e531443e8529c6f71098c5d5f87036460b4a3e6 /utils | |
parent | 0f6ab346fd36bb4ff40019fb8c396f6a5c6da651 (diff) |
[Bazel] Rename generated *_main.cpp to [tool-name]-driver.cpp which CMake uses.
Fixup to llvmorg-15-init-12347-gf06abbb39380
The difference of basename affects its emitted object file.
FIXME: Each rule's name is left as origin.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/bazel/llvm-project-overlay/clang/BUILD.bazel | 4 | ||||
-rw-r--r-- | utils/bazel/llvm-project-overlay/llvm/BUILD.bazel | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/utils/bazel/llvm-project-overlay/clang/BUILD.bazel b/utils/bazel/llvm-project-overlay/clang/BUILD.bazel index 41a02f712296..e85c8d758cef 100644 --- a/utils/bazel/llvm-project-overlay/clang/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/clang/BUILD.bazel @@ -1929,7 +1929,7 @@ cc_binary( template_rule( name = "clang_main", src = "//llvm:cmake/modules/llvm-driver-template.cpp.in", - out = "clang_main.cpp", + out = "clang-driver.cpp", substitutions = { "@TOOL_NAME@": "clang" }, @@ -1940,7 +1940,7 @@ cc_library( srcs = glob([ "tools/driver/*.cpp", "tools/driver/*.h", - ]) + ["clang_main.cpp"], + ]) + ["clang-driver.cpp"], copts = [ # Disable stack frame size checks in the driver because # clang::ensureStackAddressSpace allocates a large array on the stack. diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel index 7619bc4c7848..4a9bd6b5ec71 100644 --- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel @@ -2588,7 +2588,7 @@ gentbl( template_rule( name = "dsymutil_main", src = "cmake/modules/llvm-driver-template.cpp.in", - out = "dsymutil_main.cpp", + out = "dsymutil-driver.cpp", substitutions = { "@TOOL_NAME@": "dsymutil" }, @@ -2599,7 +2599,7 @@ cc_binary( srcs = glob([ "tools/dsymutil/*.cpp", "tools/dsymutil/*.h", - ]) + ["dsymutil_main.cpp"], + ]) + ["dsymutil-driver.cpp"], copts = llvm_copts, stamp = 0, deps = [ @@ -2692,7 +2692,7 @@ cc_binary( template_rule( name = "ar_main", src = "cmake/modules/llvm-driver-template.cpp.in", - out = "ar_main.cpp", + out = "llvm-ar-driver.cpp", substitutions = { "@TOOL_NAME@": "llvm_ar" }, @@ -2703,7 +2703,7 @@ cc_binary( srcs = glob([ "tools/llvm-ar/*.cpp", "tools/llvm-ar/*.h", - ]) + ["ar_main.cpp"], + ]) + ["llvm-ar-driver.cpp"], copts = llvm_copts, stamp = 0, deps = [ @@ -2894,7 +2894,7 @@ gentbl( template_rule( name = "cxxfilt_main", src = "cmake/modules/llvm-driver-template.cpp.in", - out = "cxxfilt_main.cpp", + out = "llvm-cxxfilt-driver.cpp", substitutions = { "@TOOL_NAME@": "llvm_cxxfilt" }, @@ -2905,7 +2905,7 @@ cc_binary( srcs = glob([ "tools/llvm-cxxfilt/*.cpp", "tools/llvm-cxxfilt/*.h", - ]) + ["cxxfilt_main.cpp"], + ]) + ["llvm-cxxfilt-driver.cpp"], copts = llvm_copts, stamp = 0, deps = [ @@ -3437,7 +3437,7 @@ cc_binary( template_rule( name = "objcopy_main", src = "cmake/modules/llvm-driver-template.cpp.in", - out = "objcopy_main.cpp", + out = "llvm-objcopy-driver.cpp", substitutions = { "@TOOL_NAME@": "llvm_objcopy" }, @@ -3449,7 +3449,7 @@ cc_binary( srcs = glob([ "tools/llvm-objcopy/*.cpp", "tools/llvm-objcopy/*.h", - ]) + ["objcopy_main.cpp"], + ]) + ["llvm-objcopy-driver.cpp"], copts = llvm_copts, stamp = 0, deps = [ |