Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -470,10 +470,7 @@ $G/idgen: $D/idgen.d $(HOST_DMD_PATH)

VERSION := $(shell cat ../VERSION) # default to checked-in VERSION file
ifneq (1,$(RELEASE)) # unless building a release
VERSION_GIT := $(shell printf "`$(GIT) describe --dirty`") # use git describe
ifneq (,$(VERSION_GIT)) # check for git failures
VERSION := $(VERSION_GIT)
endif
VERSION := $(shell printf "`$(GIT) describe --dirty || cat ../VERSION`") # use git describe
endif

# only update $G/VERSION when it differs to avoid unnecessary rebuilds
Expand Down