File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,16 @@ else()
16
16
endif ()
17
17
18
18
cmake_minimum_required (VERSION 3.4.3 )
19
+ # FIXME:
20
+ # The OLD behavior (pre 3.2) for this policy is to not set the value of the
21
+ # CMAKE_EXE_LINKER_FLAGS variable in the generated test project. The NEW behavior
22
+ # for this policy is to set the value of the CMAKE_EXE_LINKER_FLAGS variable
23
+ # in the test project to the same as it is in the calling project. The new
24
+ # behavior cause the compiler_rt test to fail during try_compile: see
25
+ # projects/compiler-rt/cmake/Modules/CompilerRTUtils.cmake:121 such that
26
+ # CAN_TARGET_${arch} is not set properly. This results in COMPILER_RT_SUPPORTED_ARCH
27
+ # not being updated properly leading to poblems.
28
+ cmake_policy (SET CMP0056 OLD )
19
29
20
30
# FIXME: It may be removed when we use 2.8.12.
21
31
if (CMAKE_VERSION VERSION_LESS 2.8.12 )
You can’t perform that action at this time.
0 commit comments