[compiler-rt] r277420 - Revert "[CMake] Pass -nostdlib if supported"

Jonas Hahnfeld via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 1 23:01:05 PDT 2016


Author: hahnfeld
Date: Tue Aug  2 01:01:05 2016
New Revision: 277420

URL: http://llvm.org/viewvc/llvm-project?rev=277420&view=rev
Log:
Revert "[CMake] Pass -nostdlib if supported"

This reverts commit r277419.

Modified:
    compiler-rt/trunk/CMakeLists.txt
    compiler-rt/trunk/cmake/config-ix.cmake

Modified: compiler-rt/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/CMakeLists.txt?rev=277420&r1=277419&r2=277420&view=diff
==============================================================================
--- compiler-rt/trunk/CMakeLists.txt (original)
+++ compiler-rt/trunk/CMakeLists.txt Tue Aug  2 01:01:05 2016
@@ -111,8 +111,6 @@ if(COMPILER_RT_ENABLE_WERROR)
 endif()
 
 append_string_if(COMPILER_RT_HAS_STD_CXX11_FLAG -std=c++11 CMAKE_CXX_FLAGS)
-# we don't need to link with the C++ library
-append_string_if(COMPILER_RT_HAS_NOSTDLIB_FLAG -nostdlib CMAKE_CXX_FLAGS)
 
 # Emulate C99 and C++11's __func__ for MSVC prior to 2013 CTP.
 if(NOT COMPILER_RT_HAS_FUNC_SYMBOL)

Modified: compiler-rt/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/config-ix.cmake?rev=277420&r1=277419&r2=277420&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/config-ix.cmake (original)
+++ compiler-rt/trunk/cmake/config-ix.cmake Tue Aug  2 01:01:05 2016
@@ -26,7 +26,6 @@ check_cxx_compiler_flag(-fno-rtti
 check_cxx_compiler_flag(-ffreestanding       COMPILER_RT_HAS_FFREESTANDING_FLAG)
 check_cxx_compiler_flag("-Werror -fno-function-sections" COMPILER_RT_HAS_FNO_FUNCTION_SECTIONS_FLAG)
 check_cxx_compiler_flag(-std=c++11           COMPILER_RT_HAS_STD_CXX11_FLAG)
-check_cxx_compiler_flag(-nostdlib            COMPILER_RT_HAS_NOSTDLIB_FLAG)
 check_cxx_compiler_flag(-ftls-model=initial-exec COMPILER_RT_HAS_FTLS_MODEL_INITIAL_EXEC)
 check_cxx_compiler_flag(-fno-lto             COMPILER_RT_HAS_FNO_LTO_FLAG)
 check_cxx_compiler_flag("-Werror -msse3" COMPILER_RT_HAS_MSSE3_FLAG)




More information about the llvm-commits mailing list