use_llvm fix

pull/99/head
QuentinCaffeino 2018-02-25 17:03:55 +01:00
parent 43f57c7f80
commit af2861faf7
1 changed files with 6 additions and 3 deletions

View File

@ -28,14 +28,14 @@ env = Environment()
if target_platform == 'windows':
env = Environment(ENV = os.environ)
if ARGUMENTS.get('use_llvm', 'no') == 'yes':
env['CXX'] = 'clang++'
if target_platform == 'linux':
result_name += '.linux.' + target_arch
env['CXX']='gcc-5'
if ARGUMENTS.get('use_llvm', 'no') == 'yes':
env['CXX'] = 'clang++'
env.Append(CCFLAGS = [ '-fPIC', '-g', '-O3', '-std=c++14', '-Wwrite-strings' ])
env.Append(LINKFLAGS = [ '-Wl,-R,\'$$ORIGIN\'' ])
@ -67,6 +67,9 @@ elif target_platform == 'windows':
env.Append(LINKFLAGS = [ '--static', '-Wl,--no-undefined', '-static-libgcc', '-static-libstdc++' ])
elif platform == 'osx':
if ARGUMENTS.get('use_llvm', 'no') == 'yes':
env['CXX'] = 'clang++'
env.Append(CCFLAGS = [ '-g','-O3', '-std=c++14', '-arch', 'x86_64' ])
env.Append(LINKFLAGS = [ '-arch', 'x86_64', '-framework', 'Cocoa', '-Wl,-undefined,dynamic_lookup' ])