[libcxx-commits] [libcxx] [libc++] Allow running the test suite with optimizations (PR #68753)

Alexander Richardson via libcxx-commits libcxx-commits at lists.llvm.org
Sun Oct 29 17:44:53 PDT 2023


================
@@ -121,6 +136,17 @@ def getStdFlag(cfg, std):
             AddCompileFlag(lambda cfg: getStdFlag(cfg, std)),
         ],
     ),
+    Parameter(
+        name="optimization",
+        choices=["none", "speed", "size"],
+        type=str,
+        help="The version of the standard to compile the test suite with.",
----------------
arichardson wrote:

This help string is not quite accurate. I wonder if it would be simpler to just add a test_flags parameter and pass -O2 from the cache file (similar to #65517)?

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


More information about the libcxx-commits mailing list