Skip to content

Commit 8bc9ecf

Browse files
author
Daniel Kroening
authored
Merge pull request diffblue#2386 from tautschnig/make-version
Make's file function is only available from 4.2 onwards
2 parents ca982a5 + 7b4b8fe commit 8bc9ecf

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/common

-6
Original file line numberDiff line numberDiff line change
@@ -239,13 +239,7 @@ else
239239
$(CBMC_VERSION_FILES): CP_CXXFLAGS += -DCBMC_VERSION="\"$(CBMC_VERSION) ($(GIT_INFO))\""
240240
endif
241241

242-
# Use make >= 4.0's `file` function, if available - it should be faster than
243-
# `shell cat`
244-
ifeq ($(firstword $(subst ., , $(MAKE_VERSION))), 3)
245242
KNOWN_RELEASE_INFO = $(shell cat $(GIT_INFO_FILE) 2>/dev/null)
246-
else
247-
KNOWN_RELEASE_INFO = $(file < $(GIT_INFO_FILE))
248-
endif
249243
ifneq ($(GIT_INFO), $(KNOWN_RELEASE_INFO))
250244
$(CBMC_VERSION_FILES): $(GIT_INFO_FILE)
251245

0 commit comments

Comments
 (0)