[compiler-rt] 72e7e15 - [compiler-rt] Add -fno-omit-frame-pointer check to builtins
Shoaib Meenai via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 30 13:53:48 PDT 2021
Author: Gwen Mittertreiner
Date: 2021-09-30T13:53:13-07:00
New Revision: 72e7e15a120c149c2784f92056a47451670dc5fc
URL: https://github.com/llvm/llvm-project/commit/72e7e15a120c149c2784f92056a47451670dc5fc
DIFF: https://github.com/llvm/llvm-project/commit/72e7e15a120c149c2784f92056a47451670dc5fc.diff
LOG: [compiler-rt] Add -fno-omit-frame-pointer check to builtins
rG210d72e9d6b4a8e7633921d0bd7186fd3c7a2c8c moved the check from
builtin-config-ix to config-ix so that the check would be made even when
the builtins are not built. However, now the check is no longer made
when the builtins are built standalone which causes the builtins to fail
to build.
Add the check back to builtins-config-ix so that the check gets
performed both when the builtins are not built, and when they are built
standalone.
Reviewed By: smeenai
Differential Revision: https://reviews.llvm.org/D110879
Added:
Modified:
compiler-rt/cmake/builtin-config-ix.cmake
Removed:
################################################################################
diff --git a/compiler-rt/cmake/builtin-config-ix.cmake b/compiler-rt/cmake/builtin-config-ix.cmake
index 4872119f42084..68e9630534740 100644
--- a/compiler-rt/cmake/builtin-config-ix.cmake
+++ b/compiler-rt/cmake/builtin-config-ix.cmake
@@ -10,6 +10,7 @@ builtin_check_c_compiler_flag(-fPIE COMPILER_RT_HAS_FPIE_FLAG)
builtin_check_c_compiler_flag(-fno-builtin COMPILER_RT_HAS_FNO_BUILTIN_FLAG)
builtin_check_c_compiler_flag(-std=c11 COMPILER_RT_HAS_STD_C11_FLAG)
builtin_check_c_compiler_flag(-fvisibility=hidden COMPILER_RT_HAS_VISIBILITY_HIDDEN_FLAG)
+builtin_check_c_compiler_flag(-fomit-frame-pointer COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG)
builtin_check_c_compiler_flag(-ffreestanding COMPILER_RT_HAS_FREESTANDING_FLAG)
builtin_check_c_compiler_flag(-fxray-instrument COMPILER_RT_HAS_XRAY_COMPILER_FLAG)
More information about the llvm-commits
mailing list