Commit 9817ee8
committed
Respect aarch64 -march=|-mcpu= flag and check whether -mcpu=native works
Packagers may specify a target system up front, which should be
respected. The CRC extensions are not strictly necessary as there is a
software fallback.
Otherwise, use -mcpu=native if it works (it won't when cross-compiling)
or -mcpu=generic+crc.
Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>1 parent de68119 commit 9817ee8
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
15 | 22 | | |
16 | 23 | | |
17 | 24 | | |
| |||
0 commit comments