Skip to content

Commit a576ce0

Browse files
committed
Use x86-64 instead of native for portable builds
-march=native doesn't work in container environments. Use -march=x86-64 for portability across CI/CD and local builds. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent edf0681 commit a576ce0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ DEBUG_FLAGS := -O0 -g3 -DDEBUG -Wpedantic -Wconversion -Wshadow \
5050
-Wnested-externs -Winline -Wvla -fstack-protector-strong \
5151
-D_FORTIFY_SOURCE=2 -fno-omit-frame-pointer
5252

53-
RELEASE_FLAGS := -O3 -DNDEBUG -march=native -funroll-loops -ffast-math
53+
RELEASE_FLAGS := -O3 -DNDEBUG -march=x86-64 -funroll-loops -ffast-math
5454
COVERAGE_FLAGS := $(DEBUG_FLAGS) --coverage
5555
ASAN_FLAGS := $(DEBUG_FLAGS) -fsanitize=address -fno-omit-frame-pointer
5656
UBSAN_FLAGS := $(DEBUG_FLAGS) -fsanitize=undefined -fno-omit-frame-pointer

0 commit comments

Comments
 (0)