@@ -451,7 +451,7 @@ def version_int(ver):
451451 "%llvmdylib" ,
452452 "{}/libLLVM{}.{}" .format (
453453 config .llvm_shlib_dir , config .llvm_shlib_ext , config .llvm_dylib_version
454- )
454+ ),
455455 )
456456 )
457457
@@ -582,14 +582,15 @@ def have_ld64_plugin_support():
582582if have_ld64_plugin_support ():
583583 config .available_features .add ("ld64_plugin" )
584584
585+
585586def host_unwind_supports_jit ():
586587 # Do we expect the host machine to support JIT registration of clang's
587588 # default unwind info format for the host (e.g. eh-frames, compact-unwind,
588589 # etc.).
589590
590591 # Linux and the BSDs use DWARF eh-frames and all known unwinders support
591592 # register_frame at minimum.
592- if platform .system () in [ "Linux" , "FreeBSD" , "NetBSD" ]:
593+ if platform .system () in ["Linux" , "FreeBSD" , "NetBSD" ]:
593594 return True
594595
595596 # Windows does not support frame info without the ORC runtime.
@@ -602,10 +603,7 @@ def host_unwind_supports_jit():
602603 # macOS 14.0.
603604 if platform .system () == "Darwin" :
604605
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