Commit: 4fc0b7f247f3c415220fe685d411ece82a87c921
Parent: 2bad3f9886427443070129351dc3f3d87606d22a
Author: Randy Palamar
Date: Wed, 28 Jan 2026 05:56:28 -0700
build: generic on x86_64 now includes SSE4.1
I'm not sure why x86-64-v3 includes AVX but not SSE4.1 but it is
required. If its an issue I can probably convert that code to
using AVX only later.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build.c b/build.c
@@ -550,7 +550,7 @@ cmd_base(Arena *a, CommandList *c)
if (!is_msvc) {
/* TODO(rnp): support cross compiling with clang */
if (!o->generic) cmd_append(a, c, "-march=native");
- else if (is_amd64) cmd_append(a, c, "-march=x86-64-v3");
+ else if (is_amd64) cmd_append(a, c, "-march=x86-64-v3", "-msse4.1");
else if (is_aarch64) cmd_append(a, c, "-march=armv8");
}