diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-01-24 12:16:46 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-01-24 12:16:46 +0100 |
commit | 2a9ad48eb63a5f019c528fe46ceca0065364a44d (patch) | |
tree | a84eec02de3e555ca502d9fc4cdc2d9ca66b203c /Makefile | |
parent | 8fe9ab50e51204e5709eaad0fbf2ffb5397a0194 (diff) | |
download | yosys-2a9ad48eb63a5f019c528fe46ceca0065364a44d.tar.gz yosys-2a9ad48eb63a5f019c528fe46ceca0065364a44d.tar.bz2 yosys-2a9ad48eb63a5f019c528fe46ceca0065364a44d.zip |
Added ENABLE_NDEBUG makefile options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |