Skip to content

Commit d5bb0de

Browse files
authored
[libc] Populate rtti/eh flags for all targets
1 parent 01d5254 commit d5bb0de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libc/benchmarks/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ function(add_libc_multi_impl_benchmark name)
126126
target_link_libraries(${benchmark_name} PUBLIC json ${entrypoint_object_file})
127127
string(TOUPPER ${name} name_upper)
128128
target_compile_definitions(${benchmark_name} PRIVATE "-DLIBC_BENCHMARK_FUNCTION_${name_upper}=__llvm_libc::${name}" "-DLIBC_BENCHMARK_FUNCTION_NAME=\"${fq_config_name}\"")
129+
llvm_update_compile_flags(${benchmark_name})
129130
else()
130131
message(STATUS "Skipping benchmark for '${fq_config_name}' insufficient host cpu features '${required_cpu_features}'")
131132
endif()
@@ -151,7 +152,6 @@ add_executable(libc.benchmarks.memory_functions.opt_host
151152
LibcMemoryGoogleBenchmarkMain.cpp
152153
LibcDefaultImplementations.cpp
153154
)
154-
155155
target_link_libraries(libc.benchmarks.memory_functions.opt_host
156156
PRIVATE
157157
libc-memory-benchmark
@@ -163,5 +163,6 @@ target_link_libraries(libc.benchmarks.memory_functions.opt_host
163163
libc.src.string.memmove_opt_host
164164
benchmark_main
165165
)
166+
llvm_update_compile_flags(libc.benchmarks.memory_functions.opt_host)
166167

167168
add_subdirectory(automemcpy)

0 commit comments

Comments
 (0)