mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
Workaround for machines on GitHub Actions that incorrectly report CPU vector instruction availability
This commit is contained in:
@@ -127,6 +127,12 @@ init_simd(void *x) {
|
|||||||
has_sse4_2 = true; has_avx2 = true;
|
has_sse4_2 = true; has_avx2 = true;
|
||||||
#else
|
#else
|
||||||
do_check();
|
do_check();
|
||||||
|
// On GitHub actions there are some weird macOS machines which report avx2 not available but sse4.2 is available and then
|
||||||
|
// SIGILL when using basic sse instructions
|
||||||
|
if (!has_avx2 && has_sse4_2) {
|
||||||
|
const char *ci = getenv("CI");
|
||||||
|
if (ci && strcmp(ci, "true") == 0) has_sse4_2 = false;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#ifdef __aarch64__
|
#ifdef __aarch64__
|
||||||
|
|||||||
Reference in New Issue
Block a user