diff --git a/build.py b/build.py index 1a72334..10b3952 100644 --- a/build.py +++ b/build.py @@ -23,7 +23,7 @@ exit(1) if platform.system() == 'Darwin': - COMPILER = 'clang++' + COMPILER = '/usr/local/opt/llvm/bin/clang++' gpp_command = [ COMPILER, '-Iinclude', @@ -54,6 +54,9 @@ if platform.system() != 'Windows': gpp_command.append('-flto=auto') +if platform.system() == 'Darwin': + gpp_command.append('-L/usr/local/opt/llvm/lib') + gpp_command += cpp_files + ['-o', OUTPUT_EXECUTABLE] nvcc_command = [ 'nvcc', '-Iinclude'