summaryrefslogtreecommitdiff
path: root/audio/ardour6/files/patch-wscript
blob: bb8aeb50d316b432d7f63ac5935100795d16c7cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- wscript.orig	2020-07-08 18:34:29 UTC
+++ wscript
@@ -502,7 +502,7 @@ int main() { return 0; }''',
         c_flags.append("-Qunused-arguments")
         cxx_flags.append("-Qunused-arguments")
 
-    if (re.search ("(i[0-9]86|x86_64|AMD64)", cpu) != None) and conf.env['build_target'] != 'none':
+    if (re.search ("(i[0-9]86|x86_64|amd64|AMD64)", cpu) != None) and conf.env['build_target'] != 'none':
 
         #
         # ARCH_X86 means anything in the x86 family from i386 to x86_64
@@ -534,6 +534,13 @@ int main() { return 0; }''',
                 compiler_flags.append ("-march=i586")
             elif cpu == "i686":
                 compiler_flags.append ("-march=i686")
+
+        else :
+            # and cpu == 'amd64' :
+            # this is 20yo tech and present in all 64bit cpus
+            build_host_supports_sse = True
+            compiler_flags.append ("-mmmx")
+            compiler_flags.append ("-m3dnow")
 
         if not is_clang and ((conf.env['build_target'] == 'i686') or (conf.env['build_target'] == 'x86_64')) and build_host_supports_sse:
             compiler_flags.extend ([ flags_dict['sse'], flags_dict['fpmath-sse'], flags_dict['xmmintrinsics'] ])