File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
utils/bazel/llvm-project-overlay/libc Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -78,11 +78,6 @@ def libc_function(
78
78
its deps.
79
79
**kwargs: Other attributes relevant for a cc_library. For example, deps.
80
80
"""
81
- # x86 targets have -mno-omit-leaf-frame-pointer.
82
- copts = selects .with_or ({
83
- PLATFORM_CPU_X86_64 : ["-mno-omit-leaf-frame-pointer" ],
84
- "//conditions:default" : []
85
- })
86
81
# We use the explicit equals pattern here because append and += mutate the
87
82
# original list, where this creates a new list and stores it in deps.
88
83
copts = copts + [
@@ -93,6 +88,12 @@ def libc_function(
93
88
"-fno-omit-frame-pointer" ,
94
89
"-fstack-protector-strong" ,
95
90
]
91
+ # x86 targets have -mno-omit-leaf-frame-pointer.
92
+ platform_copts = selects .with_or ({
93
+ PLATFORM_CPU_X86_64 : ["-mno-omit-leaf-frame-pointer" ],
94
+ "//conditions:default" : []
95
+ })
96
+ copts = copts + platform_copts
96
97
97
98
# We compile the code twice, the first target is suffixed with ".__internal__" and contains the
98
99
# C++ functions in the "LIBC_NAMESPACE" namespace. This allows us to test the function in the
You can’t perform that action at this time.
0 commit comments