[libc][benchmark] Do not force static linking
authorGuillaume Chatelet <gchatelet@google.com>
Thu, 11 May 2023 09:09:28 +0000 (09:09 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Thu, 11 May 2023 09:09:28 +0000 (09:09 +0000)
Being able to link statically depends on other CMake options and choice of libc.

libc/benchmarks/CMakeLists.txt

index c3c12fb..3d665ce 100644 (file)
@@ -196,7 +196,6 @@ target_link_libraries(libc.benchmarks.memory_functions.opt_host
   libc.src.string.bzero_opt_host.__internal__
   libc.src.string.memmove_opt_host.__internal__
   benchmark_main
-  -static
 )
 llvm_update_compile_flags(libc.benchmarks.memory_functions.opt_host)