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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # 5 #
6 # GNU Make based build file. For details on GNU Make see: 6 # GNU Make based build file. For details on GNU Make see:
7 # http://www.gnu.org/software/make/manual/make.html 7 # http://www.gnu.org/software/make/manual/make.html
8 # 8 #
9 # 9 #
10 10
11 11
12 # 12 #
13 # Macros for TOOLS 13 # Macros for TOOLS
14 # 14 #
15 # We use the C++ compiler for everything and then use the -Wl,-as-needed flag 15 # We use the C++ compiler for everything and then use the -Wl,-as-needed flag
16 # in the linker to drop libc++ unless it's actually needed. 16 # in the linker to drop libc++ unless it's actually needed.
17 # 17 #
18 HOST_CC?=cl.exe /nologo 18 HOST_CC?=cl.exe /nologo
19 HOST_CXX?=cl.exe /nologo /EHsc 19 HOST_CXX?=cl.exe /nologo /EHsc
20 HOST_LINK?=link.exe /nologo 20 HOST_LINK?=link.exe /nologo
21 HOST_LIB?=lib.exe /nologo 21 HOST_LIB?=lib.exe /nologo
22 22
23 ifeq (,$(findstring cl.exe,$(shell $(WHICH) cl.exe)))
24 $(warning To skip the host build use:)
25 $(warning "make NO_HOST_BUILDS=1")
26 $(error Unable to find cl.exe in PATH while building Windows host build)
27 endif
28
23 29
24 ifeq ('Debug','$(CONFIG)') 30 ifeq ('Debug','$(CONFIG)')
25 WIN_OPT_FLAGS?=/Od /MTd /Z7 31 WIN_OPT_FLAGS?=/Od /MTd /Z7
26 else 32 else
27 WIN_OPT_FLAGS?=/O2 /MT /Z7 33 WIN_OPT_FLAGS?=/O2 /MT /Z7
28 endif 34 endif
29 35
30 WIN_FLAGS?=-D WIN32 -D _WIN32 -D PTW32_STATIC_LIB 36 WIN_FLAGS?=-D WIN32 -D _WIN32 -D PTW32_STATIC_LIB
31 37
32 38
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 NMF:=python $(NACL_SDK_ROOT)/tools/create_nmf.py 127 NMF:=python $(NACL_SDK_ROOT)/tools/create_nmf.py
122 128
123 define NMF_RULE 129 define NMF_RULE
124 NMF_LIST+=$(OUTDIR)/$(1).nmf 130 NMF_LIST+=$(OUTDIR)/$(1).nmf
125 $(OUTDIR)/$(1).nmf : $(OUTDIR)/$(1)$(HOST_EXT) 131 $(OUTDIR)/$(1).nmf : $(OUTDIR)/$(1)$(HOST_EXT)
126 @echo "Host Toolchain" > $$@ 132 @echo "Host Toolchain" > $$@
127 endef 133 endef
128 134
129 all : $(LIB_LIST) $(DEPS_LIST) $(NMF_LIST) 135 all : $(LIB_LIST) $(DEPS_LIST) $(NMF_LIST)
130 136
OLDNEW
« 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