[libc] use -O3 to compile memory functions
authorGuillaume Chatelet <gchatelet@google.com>
Thu, 20 Apr 2023 11:35:43 +0000 (11:35 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Thu, 20 Apr 2023 11:35:43 +0000 (11:35 +0000)
libc/src/string/CMakeLists.txt

index a514938..554f33b 100644 (file)
@@ -455,7 +455,7 @@ function(add_implementation name impl_name)
     SRCS ${ADD_IMPL_SRCS}
     HDRS ${ADD_IMPL_HDRS}
     DEPENDS ${ADD_IMPL_DEPENDS}
-    COMPILE_OPTIONS ${ADD_IMPL_COMPILE_OPTIONS}
+    COMPILE_OPTIONS -O3 ${ADD_IMPL_COMPILE_OPTIONS}
   )
   get_fq_target_name(${impl_name} fq_target_name)
   set_target_properties(${fq_target_name} PROPERTIES REQUIRE_CPU_FEATURES "${ADD_IMPL_REQUIRE}")