[PATCH] D125399: [gn build] Use llvm-ar when clang_base_path is specified
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 11 10:41:29 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf37e6faf523d: [gn build] Use llvm-ar when clang_base_path is specified (authored by aeubanks).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125399/new/
https://reviews.llvm.org/D125399
Files:
llvm/utils/gn/build/toolchain/BUILD.gn
Index: llvm/utils/gn/build/toolchain/BUILD.gn
===================================================================
--- llvm/utils/gn/build/toolchain/BUILD.gn
+++ llvm/utils/gn/build/toolchain/BUILD.gn
@@ -174,7 +174,11 @@
unix_toolchain("unix") {
if (current_os != "ios" && current_os != "mac") {
- ar = "ar"
+ if (clang_base_path != "") {
+ ar = rebase_path(clang_base_path, root_build_dir) + "/bin/llvm-ar"
+ } else {
+ ar = "ar"
+ }
}
toolchain_args = {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125399.428711.patch
Type: text/x-patch
Size: 492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220511/b3ee9afa/attachment.bin>
More information about the llvm-commits
mailing list