1 parent c64bbeb commit 9d97845Copy full SHA for 9d97845
1 file changed
scripts/verify-layer-preview-abi.py
@@ -34,7 +34,12 @@ def find_objdump(explicit: str | None) -> str:
34
xcrun = ""
35
candidates.append(xcrun)
36
for candidate in candidates:
37
- if candidate and pathlib.Path(candidate).is_file():
+ if not candidate:
38
+ continue
39
+ resolved = shutil.which(candidate)
40
+ if resolved:
41
+ return resolved
42
+ if pathlib.Path(candidate).is_file():
43
return candidate
44
raise RuntimeError("llvm-objdump not found; pass --objdump")
45
0 commit comments