diff options
author | Nico Weber <thakis@chromium.org> | 2020-07-03 13:52:18 -0400 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2020-07-04 19:36:09 -0400 |
commit | 05c5ff5ab0b4d7cec25210bce7444827c25d71b1 (patch) | |
tree | f0aa23607a02ac1d89c1fdec029a1d3d36ea21c0 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | f804bd586ee58199db4cfb2da8e9ef067425900b (diff) | |
download | llvm-05c5ff5ab0b4d7cec25210bce7444827c25d71b1.zip llvm-05c5ff5ab0b4d7cec25210bce7444827c25d71b1.tar.gz llvm-05c5ff5ab0b4d7cec25210bce7444827c25d71b1.tar.bz2 |
[gn build] make stage2_unix_toolchain set clang_base_path
This fixes the build of compiler-rt on macOS when _not_ using
clang_base_path in args.gn: Xcode clang knows where to find the
SDK, but regular clang doesn't and needs a -isysroot parameter.
We correctly add that parameter when clang_base_path is set,
but else we omit it. If clang_base_path was not set, we also
didn't add the flag for stage2_unix_toolchain() when we build
compiler-rt with just-built clang.
Make stage2_unix_toolchain() use clang_base_path instead of setting
cc / cxx. It's less code, and it gets things like this right.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions