From 72e7e15a120c149c2784f92056a47451670dc5fc Mon Sep 17 00:00:00 2001 From: Gwen Mittertreiner Date: Thu, 30 Sep 2021 13:52:51 -0700 Subject: [PATCH] [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 --- compiler-rt/cmake/builtin-config-ix.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler-rt/cmake/builtin-config-ix.cmake b/compiler-rt/cmake/builtin-config-ix.cmake index 4872119..68e9630 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) -- 2.7.4