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 1233d1d commit 39af674Copy full SHA for 39af674
tools/perf/Makefile.perf
@@ -236,6 +236,16 @@ else
236
SHELLCHECK := $(shell which shellcheck 2> /dev/null)
237
endif
238
239
+# shellcheck is using in tools/perf/tests/Build with option -a/--check-sourced (
240
+# introduced in v0.4.7) and -S/--severity (introduced in v0.6.0). So make the
241
+# minimal shellcheck version as v0.6.0.
242
+ifneq ($(SHELLCHECK),)
243
+ ifeq ($(shell expr $(shell $(SHELLCHECK) --version | grep version: | \
244
+ sed -e 's/.\+ \([0-9]\+\).\([0-9]\+\).\([0-9]\+\)/\1\2\3/g') \< 060), 1)
245
+ SHELLCHECK :=
246
+ endif
247
+endif
248
+
249
export srctree OUTPUT RM CC CXX LD AR CFLAGS CXXFLAGS V BISON FLEX AWK
250
export HOSTCC HOSTLD HOSTAR HOSTCFLAGS SHELLCHECK
251
0 commit comments