Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2022-06-22 15:21:25 +0300
committerGuillaume Chatelet <gchatelet@google.com>2022-06-22 15:30:20 +0300
commitaeccc16497a84d61200f7ccfa3864096349260d3 (patch)
tree2d331d47f227d20d52cc41220c0c30d572046034 /libc/cmake/modules/LLVMLibCObjectRules.cmake
parent60a32157a5c62179841ad5bee5052adebf942ed8 (diff)
Re-land [libc] Apply no-builtin everywhere, remove unnecessary flags
This is a reland of D126773 / b2a9ea4420127d10b18ae648b16757665f8bbd7c. The removal of `-mllvm -combiner-global-alias-analysis` has landed separately in D128051 / 7b73f53790f3db9ee589dc26a05a481a5e9e6915. And the removal of `-mllvm --tail-merge-threshold=0` is scheduled for removal in a subsequent patch.
Diffstat (limited to 'libc/cmake/modules/LLVMLibCObjectRules.cmake')
-rw-r--r--libc/cmake/modules/LLVMLibCObjectRules.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/cmake/modules/LLVMLibCObjectRules.cmake b/libc/cmake/modules/LLVMLibCObjectRules.cmake
index 80ca475617b8..496c8ba97a93 100644
--- a/libc/cmake/modules/LLVMLibCObjectRules.cmake
+++ b/libc/cmake/modules/LLVMLibCObjectRules.cmake
@@ -11,7 +11,7 @@ function(_get_common_compile_options output_var flags)
set(compile_options ${LIBC_COMPILE_OPTIONS_DEFAULT} ${ARGN})
if(NOT ${LIBC_TARGET_OS} STREQUAL "windows")
- set(compile_options ${compile_options} -fpie -ffreestanding)
+ set(compile_options ${compile_options} -fpie -ffreestanding -fno-builtin)
endif()
if(LLVM_COMPILER_IS_GCC_COMPATIBLE)
list(APPEND compile_options "-fno-exceptions")