mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
Added ENABLE_NDEBUG makefile options
This commit is contained in:
parent
8fe9ab50e5
commit
2a9ad48eb6
12 changed files with 33 additions and 12 deletions
5
Makefile
5
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue