regexp fun
authorRobin Gareus <robin@gareus.org>
Wed, 12 Aug 2015 04:22:18 +0000 (06:22 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 12 Aug 2015 04:22:50 +0000 (06:22 +0200)
wscript

diff --git a/wscript b/wscript
index bcffc419b8612cf3bbd6e0d24537012f145c066e..96aca86efe05df764094e132e3f1bdfb0419c36e 100644 (file)
--- a/wscript
+++ b/wscript
@@ -455,7 +455,7 @@ int main() { return 0; }''',
                 # 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'])):
+                if re.search ('^x86_64', str(conf.env['CC'])) != None:
                         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)")