mirror of https://github.com/YosysHQ/yosys.git
Compare commits
2 Commits
4c643ac164
...
0bb2e09af1
Author | SHA1 | Date |
---|---|---|
Emil J | 0bb2e09af1 | |
Emil J. Tywoniak | 9142bb263b |
7
Makefile
7
Makefile
|
@ -156,6 +156,13 @@ CXXFLAGS += -D_DEFAULT_SOURCE
|
|||
endif
|
||||
|
||||
YOSYS_VER := 0.47+86
|
||||
YOSYS_MAJOR := $(shell echo $(YOSYS_VER) | cut -d'.' -f1)
|
||||
YOSYS_MINOR := $(shell echo $(YOSYS_VER) | cut -d'.' -f2 | cut -d'+' -f1)
|
||||
YOSYS_COMMIT := $(shell echo $(YOSYS_VER) | cut -d'+' -f2)
|
||||
CXXFLAGS += -DYOSYS_VER=\\"$(YOSYS_VER)\\" \
|
||||
-DYOSYS_MAJOR=$(YOSYS_MAJOR) \
|
||||
-DYOSYS_MINOR=$(YOSYS_MINOR) \
|
||||
-DYOSYS_COMMIT=$(YOSYS_COMMIT)
|
||||
|
||||
# Note: We arrange for .gitcommit to contain the (short) commit hash in
|
||||
# tarballs generated with git-archive(1) using .gitattributes. The git repo
|
||||
|
|
Loading…
Reference in New Issue