Skip to content

Commit

Permalink
library optimization flag can be selected on command line again
Browse files Browse the repository at this point in the history
`CFLAGS=-O0 make`
will now use `-O0` instead of enforcing `-O3`
which used to be the behavior before introduction of `libzstd.mk`.

This should result in faster tests,
since a few tests depend on this capability for faster roundtrips.
  • Loading branch information
Cyan4973 committed Dec 24, 2021
1 parent eebf24b commit 75525fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/libzstd.mk
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ endif
CFLAGS += -fno-stack-protector -fomit-frame-pointer -fno-ident \
-DDYNAMIC_BMI2=0 -DNDEBUG
else
CFLAGS += -O3
CFLAGS ?= -O3
endif

DEBUGLEVEL ?= 0
Expand Down

0 comments on commit 75525fc

Please sign in to comment.