@@ -110,9 +110,9 @@ const ARCHITECTURE_FLAGS = Dict(
110
110
),
111
111
" armv7l" => OrderedDict (
112
112
# Base armv7l architecture, with the most basic of FPU's
113
- " armv7l" => [" -march=armv7-a " , " -mtune =generic-armv7-a" , " -mfpu=vfpv3" , " -mfloat-abi=hard" ],
113
+ " armv7l" => [" -mcpu =generic-armv7-a" , " -mfpu=vfpv3" , " -mfloat-abi=hard" ],
114
114
# armv7l plus NEON and vfpv4, (Raspberry Pi 2B+, RK3328, most boards Elliot has access to)
115
- " neonvfpv4" => [" -march=armv7-a " , " -mtune =cortex-a53" , " -mfpu=neon-vfpv4" , " -mfloat-abi=hard" ],
115
+ " neonvfpv4" => [" -mcpu =cortex-a53" , " -mfpu=neon-vfpv4" , " -mfloat-abi=hard" ],
116
116
),
117
117
" aarch64" => OrderedDict (
118
118
# For GCC, see: <https://gcc.gnu.org/onlinedocs/gcc/AArch64-Options.html>. For
@@ -121,10 +121,10 @@ const ARCHITECTURE_FLAGS = Dict(
121
121
# and
122
122
# <https://github.com/llvm/llvm-project/blob/85e9b2687a13d1908aa86d1b89c5ce398a06cd39/llvm/lib/Target/AArch64/AArch64.td>.
123
123
# Run `clang --print-supported-cpus` for the list of values of `-mtune`.
124
- " armv8_0" => [" -march=armv8-a" , " -mtune =cortex-a57" ],
125
- " armv8_1" => [" -march=armv8.1-a" , " -mtune =thunderx2t99" ],
126
- " armv8_2_crypto" => [" -march=armv8.2-a+aes+sha2" , " -mtune =cortex-a76" ],
127
- " a64fx" => [" -march=armv8.2-a+aes+sha2+fp16+sve " , " -mtune =a64fx" ],
124
+ " armv8_0" => [" -march=armv8-a" , " -mcpu =cortex-a57" ],
125
+ " armv8_1" => [" -march=armv8.1-a" , " -mcpu =thunderx2t99" ],
126
+ " armv8_2_crypto" => [" -march=armv8.2-a+aes+sha2" , " -mcpu =cortex-a76" ],
127
+ " a64fx" => [" -mcpu =a64fx" ],
128
128
),
129
129
" powerpc64le" => OrderedDict (
130
130
" power8" => [" -mcpu=power8" , " -mtune=power8" ],
@@ -136,7 +136,7 @@ const ARCHITECTURE_FLAGS = Dict(
136
136
),
137
137
" gcc" => Dict (
138
138
" aarch64" => OrderedDict (
139
- " apple_m1" => [" -march=armv8.5-a+aes+sha2+sha3+fp16fml+fp16+rcpc+dotprod" , " -mtune =cortex-a76" ],
139
+ " apple_m1" => [" -march=armv8.5-a+aes+sha2+sha3+fp16fml+fp16+rcpc+dotprod" , " -mcpu =cortex-a76" ],
140
140
),
141
141
),
142
142
" clang" => Dict (
0 commit comments