[compiler-rt] r279496 - [builtins] Don't always use -ffreestanding when compiling builtins
Francis Ricci via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 22 17:49:03 PDT 2016
Author: fjricci
Date: Mon Aug 22 19:49:03 2016
New Revision: 279496
URL: http://llvm.org/viewvc/llvm-project?rev=279496&view=rev
Log:
[builtins] Don't always use -ffreestanding when compiling builtins
This can break on some sysroots. Let the user define it if necessary.
Modified:
compiler-rt/trunk/lib/builtins/CMakeLists.txt
Modified: compiler-rt/trunk/lib/builtins/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/CMakeLists.txt?rev=279496&r1=279495&r2=279496&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/builtins/CMakeLists.txt Mon Aug 22 19:49:03 2016
@@ -433,7 +433,6 @@ else ()
if(NOT COMPILER_RT_DEBUG)
append_list_if(COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG -fomit-frame-pointer BUILTIN_CFLAGS)
endif()
- append_list_if(COMPILER_RT_HAS_FREESTANDING_FLAG -ffreestanding BUILTIN_CFLAGS)
endif()
foreach (arch ${BUILTIN_SUPPORTED_ARCH})
More information about the llvm-commits
mailing list