Skip to content

Commit

Permalink
build: set -march=x86-64-v2 for x86_64
Browse files Browse the repository at this point in the history
This allows for the use of SSE4.1 intrinsics.

Fixes genodelabs#5440
  • Loading branch information
nfeske committed Jan 30, 2025
1 parent 465b83f commit bdcee98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repos/base/mk/spec/x86_64.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SPECS += x86 64bit
REP_INC_DIR += include/spec/x86
REP_INC_DIR += include/spec/x86_64

CC_MARCH ?= -m64 -mcmodel=large
CC_MARCH ?= -m64 -mcmodel=large -march=x86-64-v2

#
# Avoid wasting almost 4 MiB by telling the linker that the max page size is
Expand Down

0 comments on commit bdcee98

Please sign in to comment.