[llvm] b40e535 - [NFC] test/lit.cfg.py formatting (#151218)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 1 03:06:27 PDT 2025
Author: Mircea Trofin
Date: 2025-08-01T12:06:23+02:00
New Revision: b40e535818ebad8e68fa5672a3621359e3f415c2
URL: https://github.com/llvm/llvm-project/commit/b40e535818ebad8e68fa5672a3621359e3f415c2
DIFF: https://github.com/llvm/llvm-project/commit/b40e535818ebad8e68fa5672a3621359e3f415c2.diff
LOG: [NFC] test/lit.cfg.py formatting (#151218)
Added:
Modified:
llvm/test/lit.cfg.py
Removed:
################################################################################
diff --git a/llvm/test/lit.cfg.py b/llvm/test/lit.cfg.py
index 143cc3817bd08..915e387dac205 100644
--- a/llvm/test/lit.cfg.py
+++ b/llvm/test/lit.cfg.py
@@ -278,6 +278,7 @@ def get_asan_rtlib():
]
)
+
# Find (major, minor) version of ptxas
def ptxas_version(ptxas):
ptxas_cmd = subprocess.Popen([ptxas, "--version"], stdout=subprocess.PIPE)
@@ -451,7 +452,7 @@ def version_int(ver):
"%llvmdylib",
"{}/libLLVM{}.{}".format(
config.llvm_shlib_dir, config.llvm_shlib_ext, config.llvm_dylib_version
- )
+ ),
)
)
@@ -582,6 +583,7 @@ def have_ld64_plugin_support():
if have_ld64_plugin_support():
config.available_features.add("ld64_plugin")
+
def host_unwind_supports_jit():
# Do we expect the host machine to support JIT registration of clang's
# default unwind info format for the host (e.g. eh-frames, compact-unwind,
@@ -589,7 +591,7 @@ def host_unwind_supports_jit():
# Linux and the BSDs use DWARF eh-frames and all known unwinders support
# register_frame at minimum.
- if platform.system() in [ "Linux", "FreeBSD", "NetBSD" ]:
+ if platform.system() in ["Linux", "FreeBSD", "NetBSD"]:
return True
# Windows does not support frame info without the ORC runtime.
@@ -601,11 +603,7 @@ def host_unwind_supports_jit():
# compact-unwind only, and JIT'd registration is not available before
# macOS 14.0.
if platform.system() == "Darwin":
-
- assert (
- "arm64" in config.host_triple
- or "x86_64" in config.host_triple
- )
+ assert "arm64" in config.host_triple or "x86_64" in config.host_triple
if "x86_64" in config.host_triple:
return True
@@ -627,6 +625,7 @@ def host_unwind_supports_jit():
return False
+
if host_unwind_supports_jit():
config.available_features.add("host-unwind-supports-jit")
More information about the llvm-commits
mailing list