Commit 0cb73a8
FIXED: crmath build failed on old compilers not knowing -march=x86-64-v3
Upstream core-math adds -march=x86-64-v3 unconditionally on x86_64.
This microarchitecture level is only known to gcc >= 11 and clang >= 12;
older compilers error out. Drop the flag in our crmath.cmake layer when
check_c_compiler_flag() reports it is unsupported. It is only a tuning
hint, so dropping it loses AVX2 tuning but not correctness.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 4a04fdc commit 0cb73a8
1 file changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
17 | 29 | | |
18 | 30 | | |
19 | 31 | | |
| |||
0 commit comments