Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuvn committed May 11, 2024
1 parent 8660f77 commit c82c5de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinygrad/runtime/ops_clang.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class ClangCompiler(Compiler):
def compile(self, src:str) -> bytes:
platspec = ('-ffixed-x18',) if platform.machine() == "arm64" else ('-Xclang=-fnative-half-type',)
platspec = ('-ffixed-x18',) if platform.machine() == "arm64" else ()
return subprocess.check_output(('clang', '-x', 'c', '-c', '-target', f'{platform.machine()}-none-unknown-elf', '-march=native', '-fPIC', '-O2',
'-fno-builtin' ,'-ffreestanding', '-Wall', '-Werror', '-include',
f'{os.path.dirname(__file__)}/autogen/tinymath.h', '-', '-o', '-')+platspec,
Expand Down

0 comments on commit c82c5de

Please sign in to comment.