diff options
author | Robin Gareus <robin@gareus.org> | 2015-04-24 00:33:34 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-04-24 00:33:34 +0200 |
commit | 91b9d6c063c21973bfb03ee098b1986055d4221c (patch) | |
tree | 8536e674d09d984edb74a34a713cb127ec1220b5 /libs/pbd | |
parent | df498c8372eedca348b47b66f4c75a03544348b9 (diff) |
separate build host & target (fix win32 asm)
Diffstat (limited to 'libs/pbd')
-rw-r--r-- | libs/pbd/wscript | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libs/pbd/wscript b/libs/pbd/wscript index eff38d7b8b..a89edac002 100644 --- a/libs/pbd/wscript +++ b/libs/pbd/wscript @@ -145,11 +145,7 @@ def build(bld): if bld.env['build_target'] == 'x86_64': obj.defines += [ 'USE_X86_64_ASM' ] if bld.env['build_target'] == 'mingw': - import re - import platform as PLATFORM - u = PLATFORM.uname () - cpu = u[4] - if re.search ("(x86_64|AMD64)", cpu) != None: + if re.search ('/^x86_64/', str(bld.env['CC'])): obj.defines += [ 'USE_X86_64_ASM' ] obj.defines += ['NO_POSIX_MEMALIGN' ] obj.source += [ 'windows_special_dirs.cc' ] |