[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 09:12:13 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:

Is there a way to avoid having to spell this out again and again and again for each entry point? I don't see why the math.h functions should be built with a different optimization level than the rest of the libc.  The codebase should use the same `-O*` flag consistently everywhere.

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


More information about the libc-commits mailing list