Commit febe13e
committed
fix(pgvector): target x86-64-v2 for CPU portability
Without explicit CFLAGS, make detects the host CPU features (e.g. AVX-512)
and generates a .so that crashes with "signal 4: Illegal instruction"
on older x86-64 CPUs.
Pinning -march=x86-64-v2 ensures compatibility with any x86-64
processor from the last ~15 years.
Without this patch, for example you cannot install PGVector if your server
runs an Intel® i9-13900 processor.
ARM64 builds are not affected.1 parent 5a3dcfc commit febe13e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments