[PATCH] D38277: [compiler-rt}[CMake] Fix configuration on PowerPC with sanitizers
Aleksey Shlyapnikov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 27 19:46:12 PDT 2017
alekseyshl added a comment.
I wonder what's the error message?
================
Comment at: cmake/base-config-ix.cmake:153
+ # will fail with this option when building with a sanitizer.
+ set(OLD_CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS})
+ string(REPLACE "-nodefaultlibs" "" CMAKE_REQUIRED_FLAGS ${OLD_CMAKE_REQUIRED_FLAGS})
----------------
cmake_push_check_state()
================
Comment at: cmake/base-config-ix.cmake:157
+ # Undo the change.
+ set(CMAKE_REQUIRED_FLAGS "${OLD_CMAKE_REQUIRED_FLAGS}")
+
----------------
cmake_pop_check_state()
https://reviews.llvm.org/D38277
More information about the cfe-commits
mailing list