aboutsummaryrefslogtreecommitdiff
path: root/Common.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Common.mk')
-rw-r--r--Common.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/Common.mk b/Common.mk
index c8fd05e..a8bd46a 100644
--- a/Common.mk
+++ b/Common.mk
@@ -79,3 +79,9 @@ ifndef ARDUINO_DIR
else
$(call show_config_variable,ARDUINO_DIR,[USER])
endif
+
+ifeq ($(CURRENT_OS),WINDOWS)
+ ifneq ($(shell echo $(ARDUINO_DIR) | egrep '\\|[[:space:]]|cygdrive'),)
+ echo $(error On Windows, ARDUINO_DIR and other defines must use forward slash and not contain spaces, special characters or be cygdrive relative)
+ endif
+endif