[libcxx-commits] [libcxx] [libc++][In progress] Floating Point Atomic (PR #67799)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Oct 16 11:23:23 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 649c2f6c1081a0706963a5d09478223a7faaa504..d490eddfd3320b34e01426379df2c605d493c07e libcxx/utils/libcxx/test/dsl.py libcxx/utils/libcxx/test/features.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- dsl.py 2023-10-16 18:11:29.000000 +0000
+++ dsl.py 2023-10-16 18:23:05.644849 +0000
@@ -230,10 +230,11 @@
checking whether that succeeds.
"""
(exitCode, _, _) = tryCompileFlag(config, flag)
return exitCode == 0
+
@_memoizeExpensiveOperation(lambda c, f: (c.substitutions, c.environment, f))
def tryCompileOrLinkFlag(config, flag):
"""
Try using the given compiler flag/linker and return the exit code along with stdout and stderr.
"""
@@ -242,10 +243,11 @@
out, err, exitCode, timeoutInfo, _ = _executeWithFakeConfig(test, [
"%{{cxx}} -xc++ {} -Werror %{{flags}} %{{compile_flags}} %{{link_flags}} {}".format(os.devnull, flag)
])
return exitCode, out, err
# fmt: on
+
def hasCompileOrLinkFlag(config, flag):
"""
Return whether the compiler in the configuration supports a given compiler/linker flag.
``````````
</details>
https://github.com/llvm/llvm-project/pull/67799
More information about the libcxx-commits
mailing list