aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2022-04-06 12:46:05 -0700
committerPeter Collingbourne <peter@pcc.me.uk>2022-04-06 13:45:40 -0700
commit096477e25e440ca923703750c628c862cd2a876c (patch)
tree7e7db2394e2d973a98dc69595d85f3362fb92e4e /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
parent6795f37c1481d702e60e17b9d8e0b98faab979ca (diff)
downloadllvm-096477e25e440ca923703750c628c862cd2a876c.zip
llvm-096477e25e440ca923703750c628c862cd2a876c.tar.gz
llvm-096477e25e440ca923703750c628c862cd2a876c.tar.bz2
gn build: Use target OS to control whether to use/depend on llvm-ar.
When cross-compiling from Mac to non-Mac, we need to use the just-built llvm-ar instead of libtool. We're currently doing the right thing when determining which archiver command to use, but the path to ar and the toolchain dependencies were being set based on the host OS (current_os evaluated in host OS toolchain), instead of the target OS. Fix the problem by looking up current_os inside toolchain_args. Differential Revision: https://reviews.llvm.org/D123244
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions