1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-14 19:59:55 +03:00
aports/community/openttd/no-sse4.patch
2025-03-28 17:33:40 +00:00

13 lines
397 B
Diff

this sets the sources to use sse4 instructions, which is above our baseline.
it also enables sse4 on pure-x86 with our builds, so best to disable
--- a/cmake/FindSSE.cmake
+++ b/cmake/FindSSE.cmake
@@ -12,6 +12,7 @@
#include <xmmintrin.h>
#include <smmintrin.h>
#include <tmmintrin.h>
- int main() { return 0; }"
+ # die!
+ int main() { *(int *)0 = 0; }"
SSE_FOUND
)