On OS X append .osx.64 to the result_name var on SConstruct

pull/123/head
Marcelo Fernandez 2018-04-08 13:00:54 -03:00
parent f7d933debc
commit b52d55927a
1 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,10 @@ elif target_platform == 'osx':
if ARGUMENTS.get('use_llvm', 'no') == 'yes': if ARGUMENTS.get('use_llvm', 'no') == 'yes':
env['CXX'] = 'clang++' env['CXX'] = 'clang++'
# Only 64-bits is supported for OS X
target_arch = '64'
result_name += '.osx.' + target_arch
env.Append(CCFLAGS = [ '-g','-O3', '-std=c++14', '-arch', 'x86_64' ]) env.Append(CCFLAGS = [ '-g','-O3', '-std=c++14', '-arch', 'x86_64' ])
env.Append(LINKFLAGS = [ '-arch', 'x86_64', '-framework', 'Cocoa', '-Wl,-undefined,dynamic_lookup' ]) env.Append(LINKFLAGS = [ '-arch', 'x86_64', '-framework', 'Cocoa', '-Wl,-undefined,dynamic_lookup' ])