diff options
author | Bob Haarman <llvm@inglorion.net> | 2017-03-21 18:25:35 +0000 |
---|---|---|
committer | Bob Haarman <llvm@inglorion.net> | 2017-03-21 18:25:35 +0000 |
commit | ccd6ae25f43cba1459a18172cac0d52432095da7 (patch) | |
tree | 81da1174bb7d272b04e25379bc454f86fa1a2796 /clang/unittests/Basic/MemoryBufferCacheTest.cpp | |
parent | 573ab909d379a062327c3ef6d6ff2da0bbfb69a1 (diff) | |
download | bcm5719-llvm-ccd6ae25f43cba1459a18172cac0d52432095da7.tar.gz bcm5719-llvm-ccd6ae25f43cba1459a18172cac0d52432095da7.zip |
[compiler-rt] respect CMAKE_EXE_LINKER_FLAGS in compiler and library tests
Summary: check_cxx_compiler_flag and check_library_exists could fail because they ignored CMAKE_EXE_LINKER_FLAGS and therefore would always fail to produce executables. Cmake policy CMP0056 fixes this, but was explicitly set to OLD in our CMakeLists because it caused problems with test_target_arch. This change sets the policy to NEW to fix the problem with the compiler and library tests, and temporarily clears CMAKE_EXE_LINKER_FLAGS inside test_target_arch to emulate the old behavior there. This allows, for example, LTO builds that require lld to succeed.
Reviewers: davidxl, beanz
Reviewed By: beanz
Subscribers: fjricci, dberris, mgorny, mehdi_amini, tejohnson, rnk, llvm-commits
Differential Revision: https://reviews.llvm.org/D31098
llvm-svn: 298413
Diffstat (limited to 'clang/unittests/Basic/MemoryBufferCacheTest.cpp')
0 files changed, 0 insertions, 0 deletions