Skip to content
Snippets Groups Projects
Commit 97859082 authored by BERTHAUT Florent's avatar BERTHAUT Florent
Browse files

Added compile flags for osx

parent 7408afb7
No related branches found
No related tags found
No related merge requests found
......@@ -49,13 +49,13 @@ if env['platform'] == '':
if env['platform'] == "osx":
env['target_path'] += 'osx/'
cpp_library += '.osx'
env.Append(CPPDEFINES=['__MACOSX_CORE__'])
env.Append(CXXFLAGS=['-std=c++17', '-framework CoreAudio', '-framework CoreFoundation'])
if env['target'] in ('debug', 'd'):
env.Append(CCFLAGS=['-g', '-O2', '-arch', 'x86_64'])
env.Append(CXXFLAGS=['-std=c++17'])
env.Append(LINKFLAGS=['-arch', 'x86_64'])
else:
env.Append(CCFLAGS=['-g', '-O3', '-arch', 'x86_64'])
env.Append(CXXFLAGS=['-std=c++17'])
env.Append(LINKFLAGS=['-arch', 'x86_64'])
elif env['platform'] in ('x11', 'linux'):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment