default on OSX is llvm 19 (#10159)

This commit is contained in:
George Hotz
2025-05-04 21:13:50 -04:00
committed by GitHub
parent e07d8b147a
commit b68f036551
2 changed files with 3 additions and 3 deletions

View File

@@ -221,4 +221,4 @@ runs:
if: inputs.llvm == 'true' && runner.os == 'macOS'
shell: bash
run: |
brew install llvm
brew install llvm@19

View File

@@ -10,8 +10,8 @@ if sys.platform == 'win32':
elif OSX:
# Will raise FileNotFoundError if brew is not installed
# `brew --prefix` will return even if formula is not installed
if not os.path.exists(brew_prefix:=subprocess.check_output(['brew', '--prefix', 'llvm']).decode().strip()):
raise FileNotFoundError('LLVM not found, you can install it with `brew install llvm`')
if not os.path.exists(brew_prefix:=subprocess.check_output(['brew', '--prefix', 'llvm@19']).decode().strip()):
raise FileNotFoundError('LLVM not found, you can install it with `brew install llvm@19`')
LLVM_PATH: str|None = os.path.join(brew_prefix, 'lib', 'libLLVM.dylib')
else:
LLVM_PATH = ctypes.util.find_library('LLVM')