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

Side by Side Diff: Makefile

Issue 2045173003: [build] Ensure target_arch is set correctly in toplevel Makefile (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove x32 Created 4 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 # - "nacl" : cross-compile for Native Client (ia32 and x64) 243 # - "nacl" : cross-compile for Native Client (ia32 and x64)
244 # - default (no target specified): build all DEFAULT_ARCHES and MODES 244 # - default (no target specified): build all DEFAULT_ARCHES and MODES
245 # - "check": build all targets and run all tests 245 # - "check": build all targets and run all tests
246 # - "<arch>.clean" for any <arch> in ARCHES 246 # - "<arch>.clean" for any <arch> in ARCHES
247 # - "clean": clean all ARCHES 247 # - "clean": clean all ARCHES
248 248
249 # ----------------- internal stuff ------------------------ 249 # ----------------- internal stuff ------------------------
250 250
251 # Architectures and modes to be compiled. Consider these to be internal 251 # Architectures and modes to be compiled. Consider these to be internal
252 # variables, don't override them (use the targets instead). 252 # variables, don't override them (use the targets instead).
253 ARCHES = ia32 x64 x32 arm arm64 mips mipsel mips64 mips64el x87 ppc ppc64 \ 253 ARCHES = ia32 x64 arm arm64 mips mipsel mips64 mips64el x87 ppc ppc64 s390 \
254 » » s390 s390x 254 s390x
255 ARCHES32 = ia32 arm mips mipsel x87 ppc s390
255 DEFAULT_ARCHES = ia32 x64 arm 256 DEFAULT_ARCHES = ia32 x64 arm
256 MODES = release debug optdebug 257 MODES = release debug optdebug
257 DEFAULT_MODES = release debug 258 DEFAULT_MODES = release debug
258 ANDROID_ARCHES = android_ia32 android_x64 android_arm android_arm64 \ 259 ANDROID_ARCHES = android_ia32 android_x64 android_arm android_arm64 \
259 android_mipsel android_x87 260 android_mipsel android_x87
260 NACL_ARCHES = nacl_ia32 nacl_x64 261 NACL_ARCHES = nacl_ia32 nacl_x64
261 262
262 # List of files that trigger Makefile regeneration: 263 # List of files that trigger Makefile regeneration:
263 GYPFILES = third_party/icu/icu.gypi third_party/icu/icu.gyp \ 264 GYPFILES = third_party/icu/icu.gypi third_party/icu/icu.gyp \
264 gypfiles/shim_headers.gypi gypfiles/features.gypi \ 265 gypfiles/shim_headers.gypi gypfiles/features.gypi \
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 cut -f 2 -d " " | cut -f 1 -d "-" )) 448 cut -f 2 -d " " | cut -f 1 -d "-" ))
448 $(eval CXX_TARGET_ARCH:=$(subst aarch64,arm64,$(CXX_TARGET_ARCH))) 449 $(eval CXX_TARGET_ARCH:=$(subst aarch64,arm64,$(CXX_TARGET_ARCH)))
449 $(eval CXX_TARGET_ARCH:=$(subst x86_64,x64,$(CXX_TARGET_ARCH))) 450 $(eval CXX_TARGET_ARCH:=$(subst x86_64,x64,$(CXX_TARGET_ARCH)))
450 $(eval V8_TARGET_ARCH:=$(subst .,,$(suffix $(basename $@)))) 451 $(eval V8_TARGET_ARCH:=$(subst .,,$(suffix $(basename $@))))
451 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/gypfil es:$(PYTHONPATH):$(shell pwd)/tools/gyp/pylib:$(PYTHONPATH)" \ 452 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/gypfil es:$(PYTHONPATH):$(shell pwd)/tools/gyp/pylib:$(PYTHONPATH)" \
452 GYP_GENERATORS=make \ 453 GYP_GENERATORS=make \
453 tools/gyp/gyp --generator-output="$(OUTDIR)" gypfiles/all.gyp \ 454 tools/gyp/gyp --generator-output="$(OUTDIR)" gypfiles/all.gyp \
454 -Igypfiles/standalone.gypi --depth=. \ 455 -Igypfiles/standalone.gypi --depth=. \
455 -Dv8_target_arch=$(V8_TARGET_ARCH) \ 456 -Dv8_target_arch=$(V8_TARGET_ARCH) \
456 $(if $(findstring $(CXX_TARGET_ARCH),$(V8_TARGET_ARCH)), \ 457 $(if $(findstring $(CXX_TARGET_ARCH),$(V8_TARGET_ARCH)), \
457 » -Dtarget_arch=$(V8_TARGET_ARCH),) \ 458 » -Dtarget_arch=$(V8_TARGET_ARCH), \
459 » $(if $(shell echo $(ARCHES32) | grep $(V8_TARGET_ARCH) ), \
460 » -Dtarget_arch=ia32,)) \
458 $(if $(findstring optdebug,$@),-Dv8_optimized_debug=1,) \ 461 $(if $(findstring optdebug,$@),-Dv8_optimized_debug=1,) \
459 -S$(suffix $(basename $@))$(suffix $@) $(GYPFLAGS) 462 -S$(suffix $(basename $@))$(suffix $@) $(GYPFLAGS)
460 463
461 $(OUTDIR)/Makefile.native: $(GYPFILES) $(ENVFILE) 464 $(OUTDIR)/Makefile.native: $(GYPFILES) $(ENVFILE)
462 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/gypfil es:$(PYTHONPATH):$(shell pwd)/tools/gyp/pylib:$(PYTHONPATH)" \ 465 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/gypfil es:$(PYTHONPATH):$(shell pwd)/tools/gyp/pylib:$(PYTHONPATH)" \
463 GYP_GENERATORS=make \ 466 GYP_GENERATORS=make \
464 tools/gyp/gyp --generator-output="$(OUTDIR)" gypfiles/all.gyp \ 467 tools/gyp/gyp --generator-output="$(OUTDIR)" gypfiles/all.gyp \
465 -Igypfiles/standalone.gypi --depth=. -S.native $(GYPFLAGS) 468 -Igypfiles/standalone.gypi --depth=. -S.native $(GYPFLAGS)
466 469
467 # Note that NACL_SDK_ROOT must be set to point to an appropriate 470 # Note that NACL_SDK_ROOT must be set to point to an appropriate
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 tags: gtags.files $(wildcard $(shell cat gtags.files 2> /dev/null)) 517 tags: gtags.files $(wildcard $(shell cat gtags.files 2> /dev/null))
515 @(ctags --version | grep 'Exuberant Ctags' >/dev/null) || \ 518 @(ctags --version | grep 'Exuberant Ctags' >/dev/null) || \
516 (echo "Please install Exuberant Ctags (check 'ctags --version')" >&2; false) 519 (echo "Please install Exuberant Ctags (check 'ctags --version')" >&2; false)
517 ctags --fields=+l -L $< 520 ctags --fields=+l -L $<
518 521
519 tags.clean: 522 tags.clean:
520 rm -r tags 523 rm -r tags
521 524
522 dependencies builddeps: 525 dependencies builddeps:
523 $(error Use 'gclient sync' instead) 526 $(error Use 'gclient sync' instead)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698