Skip to content

Commit

Permalink
build: by default use march=native so arm builds would work
Browse files Browse the repository at this point in the history
  • Loading branch information
hanatos committed Dec 10, 2024
1 parent 670fbbf commit bb48fbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/config.mk.defaults.osx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ GLSLC_FLAGS=--target-env vulkan1.2
# GLSLC_FLAGS=--target-env=vulkan1.2

# optimised flags, you may want to use -march=x86-64 for distro builds:
OPT_CFLAGS=-Werror -Wall -pipe -O3 -march=$(shell arch) -DNDEBUG
OPT_CFLAGS=-Werror -Wall -pipe -O3 -march=native -DNDEBUG
OPT_LDFLAGS=
AR=ar
DYNAMIC=-rdynamic -fvisibility=hidden
Expand Down
2 changes: 1 addition & 1 deletion bin/config.mk.defaults.w64
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ LDFLAGS=-L/c/msys64/ucrt64/lib
export CFLAGS CXXFLAGS LDFLAGS

# optimised flags, you may want to use -march=x86-64 for distro builds:
OPT_CFLAGS=-Wall -pipe -O3 -march=x86-64 -DNDEBUG
OPT_CFLAGS=-Wall -pipe -O3 -march=native -DNDEBUG
OPT_LDFLAGS=
AR=ar

Expand Down

0 comments on commit bb48fbe

Please sign in to comment.