[libc-commits] [libc] [libc] Use `${libc_opt_high_flag}` instead of `-O3` (PR #123233)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Fri Jan 17 10:15:44 PST 2025


================
@@ -534,7 +534,7 @@ add_entrypoint_object(
     libc.src.__support.macros.optimization
     libc.src.__support.macros.properties.types
   COMPILE_OPTIONS
-    -O3
+    ${libc_opt_high_flag}
----------------
nickdesaulniers wrote:

We should key off what optimization levels are set for `CMAKE_BUILD_TYPE` and not override the users intent. If users hack up their configs to use different optimization levels, let them report bugs upstream to us.

https://github.com/llvm/llvm-project/pull/123233


More information about the libc-commits mailing list