summaryrefslogtreecommitdiff
path: root/libc/benchmarks
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2022-02-02 15:15:39 +0100
committerGitHub <noreply@github.com>2022-02-02 15:15:39 +0100
commitd5bb0de75ec40ed07cc6e5731f019b0beed4de7b (patch)
treecfeda4b6a0b2ce55f4a4caefe242ff0876a21977 /libc/benchmarks
parent01d5254f3de0e8870e3550a792801fa1da59b931 (diff)
downloadllvm-d5bb0de75ec40ed07cc6e5731f019b0beed4de7b.tar.gz
[libc] Populate rtti/eh flags for all targets
Diffstat (limited to 'libc/benchmarks')
-rw-r--r--libc/benchmarks/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/benchmarks/CMakeLists.txt b/libc/benchmarks/CMakeLists.txt
index 50a5562b14da..54f70c4b033e 100644
--- a/libc/benchmarks/CMakeLists.txt
+++ b/libc/benchmarks/CMakeLists.txt
@@ -126,6 +126,7 @@ function(add_libc_multi_impl_benchmark name)
target_link_libraries(${benchmark_name} PUBLIC json ${entrypoint_object_file})
string(TOUPPER ${name} name_upper)
target_compile_definitions(${benchmark_name} PRIVATE "-DLIBC_BENCHMARK_FUNCTION_${name_upper}=__llvm_libc::${name}" "-DLIBC_BENCHMARK_FUNCTION_NAME=\"${fq_config_name}\"")
+ llvm_update_compile_flags(${benchmark_name})
else()
message(STATUS "Skipping benchmark for '${fq_config_name}' insufficient host cpu features '${required_cpu_features}'")
endif()
@@ -151,7 +152,6 @@ add_executable(libc.benchmarks.memory_functions.opt_host
LibcMemoryGoogleBenchmarkMain.cpp
LibcDefaultImplementations.cpp
)
-
target_link_libraries(libc.benchmarks.memory_functions.opt_host
PRIVATE
libc-memory-benchmark
@@ -163,5 +163,6 @@ target_link_libraries(libc.benchmarks.memory_functions.opt_host
libc.src.string.memmove_opt_host
benchmark_main
)
+llvm_update_compile_flags(libc.benchmarks.memory_functions.opt_host)
add_subdirectory(automemcpy)