1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/utils/gn/secondary
Nico Weber 9264894fc9 mac: Correctly disable tools/lto tests when building with LLVM_ENABLE_PIC=OFF
llvm/tools sets LLVM_TOOL_LTO_BUILD to Off if LLVM_ENABLE_PIC=OFF, but that's
not visible in llvm/test.

r289662 added the llvm_tool_lto_build lit parameter, there the intent was to
use it with an explicit -DLLVM_TOOL_LTO_BUILD=OFF, which is visible globally.
On the review for that (D27739), a mild preference was expressed for using a
lit parameter over checking the existence of libLTO.dylib. Since that works
with the LLVM_ENABLE_PIC=OFF case too and since it matches what we do for the
gold plugin, switch to that approach.

Differential Revision: https://reviews.llvm.org/D56805

llvm-svn: 351515
2019-01-18 03:36:04 +00:00
..
clang gn build: Add a resource_dir.gni file. 2019-01-15 21:44:59 +00:00
compiler-rt gn build: Add headers to compiler-rt build files. 2019-01-16 18:45:12 +00:00
lld gn build: Add a template for calling write_cmake_config.py 2019-01-10 23:10:04 +00:00
llvm mac: Correctly disable tools/lto tests when building with LLVM_ENABLE_PIC=OFF 2019-01-18 03:36:04 +00:00
BUILD.gn gn build: Add check-hwasan target. 2019-01-16 00:15:25 +00:00