We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c094d8e commit 496d5ecCopy full SHA for 496d5ec
parser.mk
@@ -1,9 +1,10 @@
1
-ifeq (, $(shell which re2c))
2
-$(error "No re2c found in the $$PATH: $(PATH). Consider install re2c or/and add re2c executale to the $$PATH")
+RE2C := $(shell command -v re2c 2>/dev/null)
+ifndef RE2C
3
+$(error No re2c found in the $$PATH. Consider install re2c or/and add re2c executable to the $$PATH)
4
endif
5
6
RE2C_FLAGS=
-RE2C_VERSION=$(shell re2c --vernum 2>/dev/null)
7
+RE2C_VERSION=$(shell $(RE2C) --vernum 2>/dev/null)
8
ifeq ($(shell test "$(RE2C_VERSION)" -gt "9999"; echo $$?),0)
9
RE2C_FLAGS=-W
10
0 commit comments