]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
library optimization flag can be selected on command line again
authorYann Collet <cyan@fb.com>
Fri, 24 Dec 2021 01:43:12 +0000 (17:43 -0800)
committerYann Collet <cyan@fb.com>
Fri, 24 Dec 2021 01:43:12 +0000 (17:43 -0800)
`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.

lib/libzstd.mk

index af12daffe12814ef9299d41b5a9884af0e03da7a..c04957c6faef20fcb003f7c2fd4a0457f137be79 100644 (file)
@@ -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