upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Mansiet <AirKyzzZ@users.noreply.github.com>2026-11-22 22:59:10 +0100
committerMaxime Mansiet <AirKyzzZ@users.noreply.github.com>2026-11-22 22:59:10 +0100
commit02c19d105d0a02bb5a1bc18c1e6d30bd93bc559d (patch)
tree777676d5b20a1ffb0f1915d058ef82ed5f0aec79
parentf847748cc76bd3777f9c070c4034eb2fc1c04e64 (diff)
tests: find Homebrew's keg-only llvm-mc in conftest
Signed-off-by: Maxime Mansiet <AirKyzzZ@users.noreply.github.com>
-rw-r--r--tests/conftest.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 4cece6b65..c48b529db 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -72,6 +72,9 @@ def _find_llvm_mc():
72 candidates.append([found]) 72 candidates.append([found])
73 # Debian/Ubuntu install it versioned, out of PATH. 73 # Debian/Ubuntu install it versioned, out of PATH.
74 candidates += [[p] for p in sorted(glob.glob("/usr/lib/llvm-*/bin/llvm-mc"), reverse=True)] 74 candidates += [[p] for p in sorted(glob.glob("/usr/lib/llvm-*/bin/llvm-mc"), reverse=True)]
75 # Homebrew's llvm and llvm@N are keg-only, never linked onto PATH.
76 for prefix in ("/opt/homebrew/opt", "/usr/local/opt"):
77 candidates += [[p] for p in sorted(glob.glob(prefix + "/llvm*/bin/llvm-mc"), reverse=True)]
75 # Default location of the official Windows installer, which doesn't add LLVM to PATH unless asked to. 78 # Default location of the official Windows installer, which doesn't add LLVM to PATH unless asked to.
76 candidates += [[p] for p in glob.glob(r"C:\Program Files\LLVM\bin\llvm-mc.exe")] 79 candidates += [[p] for p in glob.glob(r"C:\Program Files\LLVM\bin\llvm-mc.exe")]
77 for c in candidates: 80 for c in candidates: