[libc-commits] [libc] eea5d9c - [libc][benchmark] Do not force static linking

Guillaume Chatelet via libc-commits libc-commits at lists.llvm.org
Thu May 11 02:10:00 PDT 2023


Author: Guillaume Chatelet
Date: 2023-05-11T09:09:28Z
New Revision: eea5d9cc4188584cbfdc18a8bac5316596e70263

URL: https://github.com/llvm/llvm-project/commit/eea5d9cc4188584cbfdc18a8bac5316596e70263
DIFF: https://github.com/llvm/llvm-project/commit/eea5d9cc4188584cbfdc18a8bac5316596e70263.diff

LOG: [libc][benchmark] Do not force static linking

Being able to link statically depends on other CMake options and choice of libc.

Added: 
    

Modified: 
    libc/benchmarks/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/benchmarks/CMakeLists.txt b/libc/benchmarks/CMakeLists.txt
index c3c12fb892dda..3d665ce1c6e71 100644
--- a/libc/benchmarks/CMakeLists.txt
+++ b/libc/benchmarks/CMakeLists.txt
@@ -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)
 


        


More information about the libc-commits mailing list