Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a058b0a

Browse files
committed
BLD: meson-cpu: fix SIMD support on platforms with no features
This code returned an empty list rather than an empty dict on platforms that don't have a key in `max_features_dict`. That would break the build on the next `foreach` statement, which needs a dict. [skip cirrus] [skip circle] [skip azp]
1 parent 3030d48 commit a058b0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meson_cpu/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ max_features_dict = {
106106
's390x': S390X_FEATURES,
107107
'arm': ARM_FEATURES,
108108
'aarch64': ARM_FEATURES,
109-
}.get(cpu_family, [])
109+
}.get(cpu_family, {})
110110
max_features = []
111111
foreach fet_name, fet_obj : max_features_dict
112112
max_features += [fet_obj]

0 commit comments

Comments
 (0)