@@ -278,6 +278,7 @@ def get_asan_rtlib():
278
278
]
279
279
)
280
280
281
+
281
282
# Find (major, minor) version of ptxas
282
283
def ptxas_version (ptxas ):
283
284
ptxas_cmd = subprocess .Popen ([ptxas , "--version" ], stdout = subprocess .PIPE )
@@ -451,7 +452,7 @@ def version_int(ver):
451
452
"%llvmdylib" ,
452
453
"{}/libLLVM{}.{}" .format (
453
454
config .llvm_shlib_dir , config .llvm_shlib_ext , config .llvm_dylib_version
454
- )
455
+ ),
455
456
)
456
457
)
457
458
@@ -582,14 +583,15 @@ def have_ld64_plugin_support():
582
583
if have_ld64_plugin_support ():
583
584
config .available_features .add ("ld64_plugin" )
584
585
586
+
585
587
def host_unwind_supports_jit ():
586
588
# Do we expect the host machine to support JIT registration of clang's
587
589
# default unwind info format for the host (e.g. eh-frames, compact-unwind,
588
590
# etc.).
589
591
590
592
# Linux and the BSDs use DWARF eh-frames and all known unwinders support
591
593
# register_frame at minimum.
592
- if platform .system () in [ "Linux" , "FreeBSD" , "NetBSD" ]:
594
+ if platform .system () in ["Linux" , "FreeBSD" , "NetBSD" ]:
593
595
return True
594
596
595
597
# Windows does not support frame info without the ORC runtime.
@@ -601,11 +603,7 @@ def host_unwind_supports_jit():
601
603
# compact-unwind only, and JIT'd registration is not available before
602
604
# macOS 14.0.
603
605
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
609
607
610
608
if "x86_64" in config .host_triple :
611
609
return True
@@ -627,6 +625,7 @@ def host_unwind_supports_jit():
627
625
628
626
return False
629
627
628
+
630
629
if host_unwind_supports_jit ():
631
630
config .available_features .add ("host-unwind-supports-jit" )
632
631
0 commit comments