aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-01-24 12:16:46 +0100
committerClifford Wolf <clifford@clifford.at>2015-01-24 12:16:46 +0100
commit2a9ad48eb63a5f019c528fe46ceca0065364a44d (patch)
treea84eec02de3e555ca502d9fc4cdc2d9ca66b203c /Makefile
parent8fe9ab50e51204e5709eaad0fbf2ffb5397a0194 (diff)
downloadyosys-2a9ad48eb63a5f019c528fe46ceca0065364a44d.tar.gz
yosys-2a9ad48eb63a5f019c528fe46ceca0065364a44d.tar.bz2
yosys-2a9ad48eb63a5f019c528fe46ceca0065364a44d.zip
Added ENABLE_NDEBUG makefile options
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 18aa95cc1..36d5edb39 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,7 @@ ENABLE_COVER := 1
# other configuration flags
ENABLE_GPROF := 0
+ENABLE_NDEBUG := 0
DESTDIR := /usr/local
INSTALL_SUDO :=
@@ -133,6 +134,10 @@ CXXFLAGS += -pg
LDFLAGS += -pg
endif
+ifeq ($(ENABLE_NDEBUG),1)
+CXXFLAGS := -O3 -DNDEBUG $(filter-out -Os,$(CXXFLAGS))
+endif
+
ifeq ($(ENABLE_ABC),1)
CXXFLAGS += -DYOSYS_ENABLE_ABC
TARGETS += yosys-abc$(EXE)