diff options
Diffstat (limited to 'audio/ardour6/files/patch-wscript')
-rw-r--r-- | audio/ardour6/files/patch-wscript | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/audio/ardour6/files/patch-wscript b/audio/ardour6/files/patch-wscript new file mode 100644 index 000000000000..bb8aeb50d316 --- /dev/null +++ b/audio/ardour6/files/patch-wscript @@ -0,0 +1,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'] ]) |