diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-04-21 13:01:54 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-04-21 13:01:54 -0400 |
commit | 8c52662ac0719d9ef40572430abd8e7d392e6464 (patch) | |
tree | babbcb7335427c5f7b2e662c7989c4bb65f4cc27 /libs | |
parent | 126b3c2417829befe71c425b98856a32ebcd699d (diff) |
use compiler target to determine whether to use 64 bit windows assembler, not the build host CPU type
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/wscript | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/ardour/wscript b/libs/ardour/wscript index 947ba0fbe2..ac5dc18503 100644 --- a/libs/ardour/wscript +++ b/libs/ardour/wscript @@ -409,11 +409,11 @@ def build(bld): elif bld.env['build_target'] == 'x86_64': obj.source += [ 'sse_functions_xmm.cc', 'sse_functions_64bit.s' ] elif bld.env['build_target'] == 'mingw': - import platform as PLATFORM - u = PLATFORM.uname () - cpu = u[4] - if re.search ("(x86_64|AMD64)", cpu) != None: - obj.source += [ 'sse_functions_xmm.cc', 'sse_functions_64bit_win.s' ] + # usability of the 64 bit windows assembler depends on the compiler target, + # not the build host, which in turn can only be inferred from the name + # of the compiler. + if re.search ('/x86_64/', str(conf.env['CC'])): + obj.source += [ 'sse_functions_xmm.cc', 'sse_functions_64bit_win.s' ] # i18n if bld.is_defined('ENABLE_NLS'): |