mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
downgrade to llvm 19
This commit is contained in:
parent
133e2eb3e9
commit
3777801b4b
1 changed files with 2 additions and 2 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue