We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-march=native
1 parent 51a0b9a commit c534d13Copy full SHA for c534d13
meson_cpu/meson.build
@@ -98,7 +98,7 @@ if host_machine.endian() == 'little' and cpu_family == 'ppc64'
98
min_features = [VSX2]
99
endif
100
101
-# Used by build option 'max'
+# Used by build option 'max/native/detect'
102
max_features_dict = {
103
'x86': X86_FEATURES,
104
'x86_64': X86_FEATURES,
@@ -111,6 +111,11 @@ max_features = []
111
foreach fet_name, fet_obj : max_features_dict
112
max_features += [fet_obj]
113
endforeach
114
+if max_features.length() == 0
115
+ message('Disabling CPU feature detection due to unsupported architecture: "' + cpu_family + '"')
116
+ CPU_CONF_BASELINE = 'none'
117
+ CPU_CONF_DISPATCH = 'none'
118
+endif
119
120
parse_options = {
121
'cpu-baseline': CPU_CONF_BASELINE,
0 commit comments