Commit ff8e8c3
committed
GH-47229: [C++][Arm] Force mimalloc to generate armv8.0 compatible binary
Mimalloc default generates LSE atomic instructions only work on armv8.1.
This causes illegal instruction on armv8.0 platforms like Raspberry4.
This PR sets mimalloc build flag -DMI_NO_OPT_ARCH=ON to disable LSE
instruction.
Please note even with flag set, compiler and libc will replace the
atmoic call with an ifunc that matches hardware best at runtime. That
means LSE is used only if the running platform supports it.1 parent fcf3b4b commit ff8e8c3
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2294 | 2294 | | |
2295 | 2295 | | |
2296 | 2296 | | |
2297 | | - | |
| 2297 | + | |
| 2298 | + | |
2298 | 2299 | | |
2299 | 2300 | | |
2300 | 2301 | | |
| |||
0 commit comments