[libcxx-commits] [libcxx] [libc++] Allow running the test suite with optimizations (PR #68753)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Oct 10 16:46:14 PDT 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r 4df74963ea0f6c8650d5837ab52e3cdcf1dcf016..6d27185b34d30e06477d647f500428252510e5da libcxx/utils/libcxx/test/params.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- params.py 2023-10-10 23:35:11.000000 +0000
+++ params.py 2023-10-10 23:46:07.088502 +0000
@@ -88,25 +88,32 @@
}
if std in fallbacks and hasCompileFlag(cfg, "-std=" + fallbacks[std]):
return "-std=" + fallbacks[std]
return None
+
def getSpeedOptimizationFlag(cfg):
if _isClang(cfg) or _isAppleClang(cfg) or _isGCC(cfg):
return "-O3"
elif _isMSVC(cfg):
return "/O2"
else:
- raise RuntimeError("Can't figure out what compiler is used in the configuration")
+ raise RuntimeError(
+ "Can't figure out what compiler is used in the configuration"
+ )
+
def getSizeOptimizationFlag(cfg):
if _isClang(cfg) or _isAppleClang(cfg) or _isGCC(cfg):
return "-Os"
elif _isMSVC(cfg):
return "/O1"
else:
- raise RuntimeError("Can't figure out what compiler is used in the configuration")
+ raise RuntimeError(
+ "Can't figure out what compiler is used in the configuration"
+ )
+
# fmt: off
DEFAULT_PARAMETERS = [
Parameter(
name="target_triple",
``````````
</details>
https://github.com/llvm/llvm-project/pull/68753
More information about the libcxx-commits
mailing list