1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 06:53:54 +02:00

Add Make flag to disable optimization

This commit is contained in:
Eelco Dolstra 2014-09-17 17:07:05 +02:00
parent 6e5b02bee4
commit 5a05cf4063
2 changed files with 10 additions and 3 deletions

View file

@ -22,8 +22,15 @@ makefiles = \
doc/manual/local.mk \
tests/local.mk
GLOBAL_CXXFLAGS += -std=c++0x
GLOBAL_CXXFLAGS += -std=c++0x -g -Wall
include Makefile.config
OPTIMIZE = 1
ifeq ($(OPTIMIZE), 1)
GLOBAL_CFLAGS += -O3
GLOBAL_CXXFLAGS += -O3
endif
include mk/lib.mk