[libc-commits] [libc] 3de3625 - [libc] use -O3 to compile memory functions
Guillaume Chatelet via libc-commits
libc-commits at lists.llvm.org
Thu Apr 20 04:36:04 PDT 2023
Author: Guillaume Chatelet
Date: 2023-04-20T11:35:43Z
New Revision: 3de3625ef785bb6cd22ba4be6a4dd1826fae1d55
URL: https://github.com/llvm/llvm-project/commit/3de3625ef785bb6cd22ba4be6a4dd1826fae1d55
DIFF: https://github.com/llvm/llvm-project/commit/3de3625ef785bb6cd22ba4be6a4dd1826fae1d55.diff
LOG: [libc] use -O3 to compile memory functions
Added:
Modified:
libc/src/string/CMakeLists.txt
Removed:
################################################################################
diff --git a/libc/src/string/CMakeLists.txt b/libc/src/string/CMakeLists.txt
index a514938ce211f..554f33b21bd0a 100644
--- a/libc/src/string/CMakeLists.txt
+++ b/libc/src/string/CMakeLists.txt
@@ -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}")
More information about the libc-commits
mailing list