Skip to content

Commit

Permalink
Ensure we get the commit hash in FBINK_VERSION on shallow clones
Browse files Browse the repository at this point in the history
(e.g., CI. I don't care enough about it to force unshallow clones in
there).
  • Loading branch information
NiLuJe committed Jul 19, 2024
1 parent 5755ced commit 7a3c5d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ EXTRA_CPPFLAGS+=$(TARGET_CPPFLAGS)

# A version tag...
# NOTE: Don't redirect stderr, so we can get an idea of what happened when things go wrong...
FBINK_VERSION:=$(shell git describe || cat VERSION)
FBINK_VERSION:=$(shell git describe || git rev-parse --short HEAD || cat VERSION)
# Only use it if we got something useful...
ifdef FBINK_VERSION
LIB_CFLAGS+=-DFBINK_VERSION='"$(FBINK_VERSION)"'
Expand Down

0 comments on commit 7a3c5d8

Please sign in to comment.