[compiler-rt] r271582 - Fix build failure with cmake version bump
Xinliang David Li via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 2 13:33:34 PDT 2016
Author: davidxl
Date: Thu Jun 2 15:33:33 2016
New Revision: 271582
URL: http://llvm.org/viewvc/llvm-project?rev=271582&view=rev
Log:
Fix build failure with cmake version bump
Modified:
compiler-rt/trunk/CMakeLists.txt
Modified: compiler-rt/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/CMakeLists.txt?rev=271582&r1=271581&r2=271582&view=diff
==============================================================================
--- compiler-rt/trunk/CMakeLists.txt (original)
+++ compiler-rt/trunk/CMakeLists.txt Thu Jun 2 15:33:33 2016
@@ -16,6 +16,16 @@ else()
endif()
cmake_minimum_required(VERSION 3.4.3)
+# FIXME:
+# The OLD behavior (pre 3.2) for this policy is to not set the value of the
+# CMAKE_EXE_LINKER_FLAGS variable in the generated test project. The NEW behavior
+# for this policy is to set the value of the CMAKE_EXE_LINKER_FLAGS variable
+# in the test project to the same as it is in the calling project. The new
+# behavior cause the compiler_rt test to fail during try_compile: see
+# projects/compiler-rt/cmake/Modules/CompilerRTUtils.cmake:121 such that
+# CAN_TARGET_${arch} is not set properly. This results in COMPILER_RT_SUPPORTED_ARCH
+# not being updated properly leading to poblems.
+cmake_policy(SET CMP0056 OLD)
# FIXME: It may be removed when we use 2.8.12.
if(CMAKE_VERSION VERSION_LESS 2.8.12)
More information about the llvm-commits
mailing list