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

Side by Side Diff: native_client_sdk/src/tools/host_gcc.mk

Issue 1163843006: [NaCl SDK] Use seperate build dir for msan/tsan builds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « native_client_sdk/src/tools/common.mk ('k') | native_client_sdk/src/tools/nacl_gcc.mk » ('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 ifdef ASAN 10 ifdef ASAN
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 endef 116 endef
117 117
118 118
119 # 119 #
120 # LIB Macro 120 # LIB Macro
121 # 121 #
122 # $1 = Target name 122 # $1 = Target name
123 # $2 = List of source files 123 # $2 = List of source files
124 # 124 #
125 define LIB_RULE 125 define LIB_RULE
126 $(STAMPDIR)/$(1).stamp: $(LIBDIR)/$(OSNAME)_host/$(CONFIG)/lib$(1).a 126 $(STAMPDIR)/$(1).stamp: $(LIBDIR)/$(OSNAME)_host/$(CONFIG_DIR)/lib$(1).a
127 @echo "TOUCHED $$@" > $(STAMPDIR)/$(1).stamp 127 @echo "TOUCHED $$@" > $(STAMPDIR)/$(1).stamp
128 128
129 all: $(LIBDIR)/$(OSNAME)_host/$(CONFIG)/lib$(1).a 129 all: $(LIBDIR)/$(OSNAME)_host/$(CONFIG_DIR)/lib$(1).a
130 $(LIBDIR)/$(OSNAME)_host/$(CONFIG)/lib$(1).a: $(foreach src,$(2),$(call SRC_TO_O BJ,$(src))) 130 $(LIBDIR)/$(OSNAME)_host/$(CONFIG_DIR)/lib$(1).a: $(foreach src,$(2),$(call SRC_ TO_OBJ,$(src)))
131 $(MKDIR) -p $$(dir $$@) 131 $(MKDIR) -p $$(dir $$@)
132 $(RM) -f $$@ 132 $(RM) -f $$@
133 $(call LOG,LIB,$$@,$(AR) $(ARFLAGS) $$@ $$^) 133 $(call LOG,LIB,$$@,$(AR) $(ARFLAGS) $$@ $$^)
134 endef 134 endef
135 135
136 136
137 # 137 #
138 # Link Macro 138 # Link Macro
139 # 139 #
140 # $1 = Target name 140 # $1 = Target name
141 # $2 = List of inputs 141 # $2 = List of inputs
142 # $3 = List of libs 142 # $3 = List of libs
143 # $4 = List of deps 143 # $4 = List of deps
144 # $5 = List of lib dirs 144 # $5 = List of lib dirs
145 # $6 = Linker flags 145 # $6 = Linker flags
146 # 146 #
147 ifdef STANDALONE 147 ifdef STANDALONE
148 define LINKER_RULE 148 define LINKER_RULE
149 all: $(1) 149 all: $(1)
150 $(1): $(2) $(foreach dep,$(4),$(STAMPDIR)/$(dep).stamp) 150 $(1): $(2) $(foreach dep,$(4),$(STAMPDIR)/$(dep).stamp)
151 » $(call LOG,LINK,$$@,$(LINK) -o $(1) $(2) $(HOST_LDFLAGS) $(LDFLAGS) $(fo reach path,$(5),-L$(path)/$(OSNAME)_host)/$(CONFIG) $(foreach lib,$(3),-l$(lib)) $(6)) 151 » $(call LOG,LINK,$$@,$(LINK) -o $(1) $(2) $(HOST_LDFLAGS) $(LDFLAGS) $(fo reach path,$(5),-L$(path)/$(OSNAME)_host/$(CONFIG_DIR) -L$(path)/$(OSNAME)_host/ $(CONFIG)) $(foreach lib,$(3),-l$(lib)) $(6))
152 endef 152 endef
153 else 153 else
154 define LINKER_RULE 154 define LINKER_RULE
155 all: $(1) 155 all: $(1)
156 $(1): $(2) $(foreach dep,$(4),$(STAMPDIR)/$(dep).stamp) 156 $(1): $(2) $(foreach dep,$(4),$(STAMPDIR)/$(dep).stamp)
157 » $(call LOG,LINK,$$@,$(LINK) -shared -o $(1) $(2) $(HOST_LDFLAGS) $(LDFLA GS) $(foreach path,$(5),-L$(path)/$(OSNAME)_host)/$(CONFIG) $(foreach lib,$(3),- l$(lib)) $(6)) 157 » $(call LOG,LINK,$$@,$(LINK) -shared -o $(1) $(2) $(HOST_LDFLAGS) $(LDFLA GS) $(foreach path,$(5),-L$(path)/$(OSNAME)_host/$(CONFIG_DIR) -L$(path)/$(OSNAM E)_host/$(CONFIG)) $(foreach lib,$(3),-l$(lib)) $(6))
158 endef 158 endef
159 endif 159 endif
160 160
161 161
162 # 162 #
163 # Link Macro 163 # Link Macro
164 # 164 #
165 # $1 = Target Name 165 # $1 = Target Name
166 # $2 = List of source files 166 # $2 = List of source files
167 # $3 = List of LIBS 167 # $3 = List of LIBS
(...skipping 23 matching lines...) Expand all
191 endef 191 endef
192 192
193 193
194 # 194 #
195 # Run standalone builds (command line builds outside of chrome) 195 # Run standalone builds (command line builds outside of chrome)
196 # 196 #
197 ifdef STANDALONE 197 ifdef STANDALONE
198 run: all 198 run: all
199 $(RUN_UNDER) $(OUTDIR)/$(TARGET)$(HOST_EXT) $(EXE_ARGS) 199 $(RUN_UNDER) $(OUTDIR)/$(TARGET)$(HOST_EXT) $(EXE_ARGS)
200 endif 200 endif
OLDNEW
« no previous file with comments | « native_client_sdk/src/tools/common.mk ('k') | native_client_sdk/src/tools/nacl_gcc.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698