[PATCH] D51645: [CMake] Don't use -rtlib=compiler-rt with -nodefaultlibs.
Phabricator via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 4 13:59:00 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rUNW341404: [CMake] Don't use -rtlib=compiler-rt with -nodefaultlibs. (authored by cdavis, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D51645?vs=163864&id=163907#toc
Repository:
rUNW libunwind
https://reviews.llvm.org/D51645
Files:
CMakeLists.txt
cmake/config-ix.cmake
Index: cmake/config-ix.cmake
===================================================================
--- cmake/config-ix.cmake
+++ cmake/config-ix.cmake
@@ -23,7 +23,6 @@
list(APPEND CMAKE_REQUIRED_LIBRARIES c)
endif ()
if (LIBUNWIND_USE_COMPILER_RT)
- list(APPEND CMAKE_REQUIRED_FLAGS -rtlib=compiler-rt)
find_compiler_rt_library(builtins LIBUNWIND_BUILTINS_LIBRARY)
list(APPEND CMAKE_REQUIRED_LIBRARIES "${LIBUNWIND_BUILTINS_LIBRARY}")
elseif (LIBUNWIND_HAS_GCC_S_LIB)
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -234,7 +234,7 @@
# Configure compiler.
include(config-ix)
-if (LIBUNWIND_USE_COMPILER_RT)
+if (LIBUNWIND_USE_COMPILER_RT AND NOT LIBUNWIND_HAS_NODEFAULTLIBS_FLAG)
list(APPEND LIBUNWIND_LINK_FLAGS "-rtlib=compiler-rt")
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51645.163907.patch
Type: text/x-patch
Size: 861 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180904/6c1d0190/attachment-0001.bin>
More information about the cfe-commits
mailing list