Skip to content

Commit

Permalink
MacOS build compiler now using g++ instead of clang++.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Oct 10, 2024
1 parent 014d4e1 commit 302ab12
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
platform.machine().lower()
)
PLATFORM = platform.system()
COMPILER = 'g++'

cpp_files = []
for root, dirs, files in os.walk('src'):
Expand All @@ -23,11 +22,8 @@
print("No .cpp files found in the src directory.")
exit(1)

if PLATFORM == 'Darwin':
COMPILER = '/opt/homebrew/opt/llvm/bin/clang++'

gpp_command = [
COMPILER, '-Iinclude',
'g++', '-Iinclude',
'-Wall', '-pedantic', '-Wdisabled-optimization',
'-pedantic-errors', '-Wextra', '-Wcast-align',
'-Wcast-qual', '-Wchar-subscripts', '-Wcomment',
Expand Down

0 comments on commit 302ab12

Please sign in to comment.