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