Index: native_client_sdk/src/resources/Makefile.index.template |
diff --git a/native_client_sdk/src/resources/Makefile.index.template b/native_client_sdk/src/resources/Makefile.index.template |
index 2881fdfea30f4225a85ce23b13d77c4a1014d413..5b6db699228249820556e4c8f8f76852b918917a 100644 |
--- a/native_client_sdk/src/resources/Makefile.index.template |
+++ b/native_client_sdk/src/resources/Makefile.index.template |
@@ -7,6 +7,13 @@ |
# http://www.gnu.org/software/make/manual/make.html |
# |
+# Always use cmd.exe as the shell on Windows. Otherwise Make may try to search |
+# the path for sh.exe. If it is found in a path with a space, the command will |
+# fail. |
+ifeq ($(OS),Windows_NT) |
+ SHELL := cmd.exe |
+endif |
+ |
PROJECTS := \ |
[[for project in projects:]] |
{{project}} \ |