]> granicus.if.org Git - esp-idf/commitdiff
build system: Fix checking the toolchain version on Windows
authorAnton Maklakov <anton@espressif.com>
Tue, 25 Sep 2018 04:19:01 +0000 (12:19 +0800)
committerAnton Maklakov <anton@espressif.com>
Wed, 26 Sep 2018 06:42:01 +0000 (14:42 +0800)
make/project.mk

index 71d86d31612349ee017c85c82edb2a84a2627fe9..7b9bd9b1d8944d33e15ffd17472febc6ba40151a 100644 (file)
@@ -604,7 +604,7 @@ $(info Toolchain path: $(TOOLCHAIN_PATH))
 endif
 
 ifdef TOOLCHAIN_COMMIT_DESC
-ifneq ($(TOOLCHAIN_COMMIT_DESC), $(SUPPORTED_TOOLCHAIN_COMMIT_DESC))
+ifeq (,$(findstring $(SUPPORTED_TOOLCHAIN_COMMIT_DESC),$(TOOLCHAIN_COMMIT_DESC)))
 $(info WARNING: Toolchain version is not supported: $(TOOLCHAIN_COMMIT_DESC))
 $(info Expected to see version: $(SUPPORTED_TOOLCHAIN_COMMIT_DESC))
 $(info Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.)