@@ -451,7 +451,7 @@ def version_int(ver):
451
451
"%llvmdylib" ,
452
452
"{}/libLLVM{}.{}" .format (
453
453
config .llvm_shlib_dir , config .llvm_shlib_ext , config .llvm_dylib_version
454
- )
454
+ ),
455
455
)
456
456
)
457
457
@@ -582,14 +582,15 @@ def have_ld64_plugin_support():
582
582
if have_ld64_plugin_support ():
583
583
config .available_features .add ("ld64_plugin" )
584
584
585
+
585
586
def host_unwind_supports_jit ():
586
587
# Do we expect the host machine to support JIT registration of clang's
587
588
# default unwind info format for the host (e.g. eh-frames, compact-unwind,
588
589
# etc.).
589
590
590
591
# Linux and the BSDs use DWARF eh-frames and all known unwinders support
591
592
# register_frame at minimum.
592
- if platform .system () in [ "Linux" , "FreeBSD" , "NetBSD" ]:
593
+ if platform .system () in ["Linux" , "FreeBSD" , "NetBSD" ]:
593
594
return True
594
595
595
596
# Windows does not support frame info without the ORC runtime.
@@ -602,10 +603,7 @@ def host_unwind_supports_jit():
602
603
# macOS 14.0.
603
604
if platform .system () == "Darwin" :
604
605
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