Skip to content

Commit

Permalink
Use LTO by default
Browse files Browse the repository at this point in the history
  • Loading branch information
smarco committed Apr 3, 2022
1 parent 8048cb6 commit f37fb5d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@ CC_FLAGS=-Wall -g
AR=ar
AR_FLAGS=-rsc

ifndef BUILD_EXAMPLES
BUILD_EXAMPLES=0
endif
ifndef BUILD_TOOLS
BUILD_TOOLS=1
endif
ifndef BUILD_WFA_PARALLEL
BUILD_WFA_PARALLEL=1
endif

###############################################################################
# Configuration rules
Expand All @@ -38,7 +44,7 @@ ifeq ($(BUILD_EXAMPLES),1)
APPS+=examples
endif

all: CC_FLAGS+=-O3 -march=native#-flto
all: CC_FLAGS+=-O3 -march=native -flto
all: build

debug: build
Expand Down

0 comments on commit f37fb5d

Please sign in to comment.