Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Unified Diff: native_client_sdk/src/tools/host_vc.mk

Issue 12220085: [NaCl SDK] Print nice error if host build can't find gcc or cl.exe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « native_client_sdk/src/tools/host_gcc.mk ('k') | native_client_sdk/src/tools/oshelpers.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/tools/host_vc.mk
diff --git a/native_client_sdk/src/tools/host_vc.mk b/native_client_sdk/src/tools/host_vc.mk
index 5bdfe5562eee35e31ba6b556135843f87381e285..c72389f6fda73ef2f5e5fa46a48e14f572f56a36 100644
--- a/native_client_sdk/src/tools/host_vc.mk
+++ b/native_client_sdk/src/tools/host_vc.mk
@@ -20,6 +20,12 @@ HOST_CXX?=cl.exe /nologo /EHsc
HOST_LINK?=link.exe /nologo
HOST_LIB?=lib.exe /nologo
+ifeq (,$(findstring cl.exe,$(shell $(WHICH) cl.exe)))
+$(warning To skip the host build use:)
+$(warning "make NO_HOST_BUILDS=1")
+$(error Unable to find cl.exe in PATH while building Windows host build)
+endif
+
ifeq ('Debug','$(CONFIG)')
WIN_OPT_FLAGS?=/Od /MTd /Z7
« no previous file with comments | « native_client_sdk/src/tools/host_gcc.mk ('k') | native_client_sdk/src/tools/oshelpers.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698