Index: native_client_sdk/src/tools/common.mk |
diff --git a/native_client_sdk/src/tools/common.mk b/native_client_sdk/src/tools/common.mk |
index 1a340fb72bf38ed3e896ad6bca33184461e90df8..ba6ff0f60c698beea5117c7da9cbeb7735f2846d 100644 |
--- a/native_client_sdk/src/tools/common.mk |
+++ b/native_client_sdk/src/tools/common.mk |
@@ -69,6 +69,7 @@ CP:=python $(NACL_SDK_ROOT)/tools/oshelpers.py cp |
MKDIR:=python $(NACL_SDK_ROOT)/tools/oshelpers.py mkdir |
MV:=python $(NACL_SDK_ROOT)/tools/oshelpers.py mv |
RM:=python $(NACL_SDK_ROOT)/tools/oshelpers.py rm |
+WHICH:=python $(NACL_SDK_ROOT)/tools/oshelpers.py which |
# |
@@ -196,7 +197,11 @@ include $(NACL_SDK_ROOT)/tools/host_gcc.mk |
endif |
ifneq (,$(findstring $(TOOLCHAIN),win)) |
+ifneq (,$(findstring $(shell $(WHICH) cl.exe),cl.exe)) |
noelallen1
2013/02/08 23:50:06
nit: I would have put the WIN specific stuff in h
|
include $(NACL_SDK_ROOT)/tools/host_vc.mk |
+else |
+$(warning cl.exe not found in PATH. Skipping host build.) |
+endif |
endif |
ifneq (,$(findstring $(TOOLCHAIN),glibc newlib)) |