@@ -278,6 +278,7 @@ def get_asan_rtlib():
278278 ]
279279)
280280
281+
281282# Find (major, minor) version of ptxas
282283def ptxas_version (ptxas ):
283284 ptxas_cmd = subprocess .Popen ([ptxas , "--version" ], stdout = subprocess .PIPE )
@@ -451,7 +452,7 @@ def version_int(ver):
451452 "%llvmdylib" ,
452453 "{}/libLLVM{}.{}" .format (
453454 config .llvm_shlib_dir , config .llvm_shlib_ext , config .llvm_dylib_version
454- )
455+ ),
455456 )
456457 )
457458
@@ -582,14 +583,15 @@ def have_ld64_plugin_support():
582583if have_ld64_plugin_support ():
583584 config .available_features .add ("ld64_plugin" )
584585
586+
585587def host_unwind_supports_jit ():
586588 # Do we expect the host machine to support JIT registration of clang's
587589 # default unwind info format for the host (e.g. eh-frames, compact-unwind,
588590 # etc.).
589591
590592 # Linux and the BSDs use DWARF eh-frames and all known unwinders support
591593 # register_frame at minimum.
592- if platform .system () in [ "Linux" , "FreeBSD" , "NetBSD" ]:
594+ if platform .system () in ["Linux" , "FreeBSD" , "NetBSD" ]:
593595 return True
594596
595597 # Windows does not support frame info without the ORC runtime.
@@ -601,11 +603,7 @@ def host_unwind_supports_jit():
601603 # compact-unwind only, and JIT'd registration is not available before
602604 # macOS 14.0.
603605 if platform .system () == "Darwin" :
604-
605- assert (
606- "arm64" in config .host_triple
607- or "x86_64" in config .host_triple
608- )
606+ assert "arm64" in config .host_triple or "x86_64" in config .host_triple
609607
610608 if "x86_64" in config .host_triple :
611609 return True
@@ -627,6 +625,7 @@ def host_unwind_supports_jit():
627625
628626 return False
629627
628+
630629if host_unwind_supports_jit ():
631630 config .available_features .add ("host-unwind-supports-jit" )
632631
0 commit comments