From c995c41a51735d3b05ce0968784c2f1dbe47490e Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Fri, 11 Oct 2024 00:15:11 +0800 Subject: [PATCH] Added build script adjustment for Darwin platform. --- build.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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'