forked from tinygrad/tinygrad
downgrade to llvm 19
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user