diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-04-21 13:28:17 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-04-21 13:28:17 -0400 |
commit | 187ddb3bad70088f901ed1ea5e1402519fd393b4 (patch) | |
tree | a976fd452ab2c40ffa1a0d002ba7315cb1d43951 | |
parent | 140e437313ea6644499fa6684f9fa5e3fb8472a1 (diff) |
more windows related SSE build fixes
-rw-r--r-- | libs/ardour/wscript | 2 | ||||
-rw-r--r-- | wscript | 10 |
2 files changed, 9 insertions, 3 deletions
diff --git a/libs/ardour/wscript b/libs/ardour/wscript index 208ec82b91..918408c06d 100644 --- a/libs/ardour/wscript +++ b/libs/ardour/wscript @@ -412,7 +412,7 @@ def build(bld): # 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(bld.env['CC'])): + if re.search ('/^x86_64/', str(bld.env['CC'])): obj.source += [ 'sse_functions_xmm.cc', 'sse_functions_64bit_win.s' ] # i18n @@ -425,8 +425,14 @@ int main() { return 0; }''', if sys.platform == 'darwin': compiler_flags.append("-DBUILD_VECLIB_OPTIMIZATIONS"); conf.env.append_value('LINKFLAGS_OSX', ['-framework', 'Accelerate']) - elif conf.env['build_target'] == 'i686' or conf.env['build_target'] == 'x86_64' or (conf.env['build_target'] == 'mingw' and build_host_supports_sse): - compiler_flags.append ("-DBUILD_SSE_OPTIMIZATIONS") + elif conf.env['build_target'] == 'i686' or conf.env['build_target'] == 'x86_64': + compiler_flags.append ("-DBUILD_SSE_OPTIMIZATIONS") + elif conf.env['build_target'] == 'mingw': + # 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'])): + compiler_flags.append ("-DBUILD_SSE_OPTIMIZATIONS") if not build_host_supports_sse: print("\nWarning: you are building Ardour with SSE support even though your system does not support these instructions. (This may not be an error, especially if you are a package maintainer)") |