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

Side by Side Diff: Makefile.standalone

Issue 1766603002: Subzero: Fix "make presubmit" for spec -Om1. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 9 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 # The following variables will likely need to be modified, depending on where 1 # The following variables will likely need to be modified, depending on where
2 # and how you built LLVM & Clang. They can be overridden in a command-line 2 # and how you built LLVM & Clang. They can be overridden in a command-line
3 # invocation of make, like: 3 # invocation of make, like:
4 # 4 #
5 # make LLVM_SRC_PATH=<path> LIBCXX_INSTALL_PATH=<path> CLANG_PATH=<path> \ 5 # make LLVM_SRC_PATH=<path> LIBCXX_INSTALL_PATH=<path> CLANG_PATH=<path> \
6 # PNACL_BIN_PATH=<path> ... 6 # PNACL_BIN_PATH=<path> ...
7 # 7 #
8 8
9 # LLVM_SRC_PATH is the path to the root of the checked out source code. This 9 # LLVM_SRC_PATH is the path to the root of the checked out source code. This
10 # directory should contain the configure script, the include/ and lib/ 10 # directory should contain the configure script, the include/ and lib/
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 # parallel execution speed. 495 # parallel execution speed.
496 ALLSPEC := 253.perlbmk 177.mesa 188.ammp 256.bzip2 164.gzip 179.art 183.equake \ 496 ALLSPEC := 253.perlbmk 177.mesa 188.ammp 256.bzip2 164.gzip 179.art 183.equake \
497 175.vpr 176.gcc 181.mcf 186.crafty 197.parser 254.gap 255.vortex \ 497 175.vpr 176.gcc 181.mcf 186.crafty 197.parser 254.gap 255.vortex \
498 300.twolf 252.eon 498 300.twolf 252.eon
499 .PHONY: $(ALLSPEC) 499 .PHONY: $(ALLSPEC)
500 500
501 TARGET := x8632 501 TARGET := x8632
502 ifeq ($(TARGET),x8632) 502 ifeq ($(TARGET),x8632)
503 TARGETFLAG=x8632 503 TARGETFLAG=x8632
504 SETUP=SetupGccX8632Opt 504 SETUP=SetupGccX8632Opt
505 SPEC := -O2 --filetype=obj 505 SPEC := --filetype=obj
506 endif 506 endif
507 ifeq ($(TARGET),x8664) 507 ifeq ($(TARGET),x8664)
508 TARGETFLAG=x8664 508 TARGETFLAG=x8664
509 SETUP=SetupGccX8664Opt 509 SETUP=SetupGccX8664Opt
510 SPEC := -O2 --filetype=obj 510 SPEC := --filetype=obj
511 endif 511 endif
512 ifeq ($(TARGET),arm32) 512 ifeq ($(TARGET),arm32)
513 TARGETFLAG=arm32 513 TARGETFLAG=arm32
514 SETUP=SetupGccArmOpt 514 SETUP=SetupGccArmOpt
515 SPEC := -O2 --filetype=obj 515 SPEC := --filetype=obj
516 endif 516 endif
517 SPECFLAGS := 517 SPECFLAGS := -O2
518 SPECBUILDONLY := false 518 SPECBUILDONLY := false
519 %.spec2k: % $(OBJDIR)/pnacl-sz make_symlink runtime 519 %.spec2k: % $(OBJDIR)/pnacl-sz make_symlink runtime
520 ./pydir/szbuild_spec2k.py -v \ 520 ./pydir/szbuild_spec2k.py -v \
521 $(SPECFLAGS) --target=$(TARGETFLAG) $(SPEC) $< 521 $(SPECFLAGS) --target=$(TARGETFLAG) $(SPEC) $<
522 $(SPECBUILDONLY) || ( cd ../../../tests/spec2k; \ 522 $(SPECBUILDONLY) || ( cd ../../../tests/spec2k; \
523 ./run_all.sh RunTimedBenchmarks $(SETUP) train $< ) 523 ./run_all.sh RunTimedBenchmarks $(SETUP) train $< )
524 524
525 check-spec: $(ALLSPEC:=.spec2k) 525 check-spec: $(ALLSPEC:=.spec2k)
526 526
527 check: check-lit check-unit check-xtest 527 check: check-lit check-unit check-xtest
(...skipping 17 matching lines...) Expand all
545 +make -f Makefile.standalone \ 545 +make -f Makefile.standalone \
546 TARGET=x8664 check-spec 546 TARGET=x8664 check-spec
547 # Build spec2k under -Om1/x86-32, to check for liveness errors. 547 # Build spec2k under -Om1/x86-32, to check for liveness errors.
548 +make -f Makefile.standalone \ 548 +make -f Makefile.standalone \
549 SPECFLAGS='-Om1' SPECBUILDONLY=true check-spec 549 SPECFLAGS='-Om1' SPECBUILDONLY=true check-spec
550 # Build spec2k under -Om1/x86-64, to check for liveness errors. 550 # Build spec2k under -Om1/x86-64, to check for liveness errors.
551 +make -f Makefile.standalone \ 551 +make -f Makefile.standalone \
552 SPECFLAGS='-Om1' TARGET=x8664 SPECBUILDONLY=true check-spec 552 SPECFLAGS='-Om1' TARGET=x8664 SPECBUILDONLY=true check-spec
553 # Run spec2k for x86-32 without advanced phi lowering. 553 # Run spec2k for x86-32 without advanced phi lowering.
554 +make -f Makefile.standalone \ 554 +make -f Makefile.standalone \
555 SPECFLAGS='--sz=--phi-edge-split=0' check-spec 555 SPECFLAGS='-O2 --sz=--phi-edge-split=0' check-spec
556 # Run spec2k for x86-64 without advanced phi lowering. 556 # Run spec2k for x86-64 without advanced phi lowering.
557 +make -f Makefile.standalone \ 557 +make -f Makefile.standalone \
558 SPECFLAGS='--sz=--phi-edge-split=0' TARGET=x8664 check-spec 558 SPECFLAGS='-O2 --sz=--phi-edge-split=0' TARGET=x8664 check-spec
559 # Run cross tests and lit tests to validate filetype=asm output. 559 # Run cross tests and lit tests to validate filetype=asm output.
560 +make -f Makefile.standalone \ 560 +make -f Makefile.standalone \
561 FORCEASM=1 check-xtest check-lit 561 FORCEASM=1 check-xtest check-lit
562 # Build spec2k for arm32. 562 # Build spec2k for arm32.
563 +make -f Makefile.standalone \ 563 +make -f Makefile.standalone \
564 TARGET=arm32 SPECBUILDONLY=true check-spec 564 TARGET=arm32 SPECBUILDONLY=true check-spec
565 # Build spec2k under -Om1/arm32. 565 # Build spec2k under -Om1/arm32.
566 +make -f Makefile.standalone \ 566 +make -f Makefile.standalone \
567 TARGET=arm32 SPECFLAGS='-Om1' SPECBUILDONLY=true check-spec 567 TARGET=arm32 SPECFLAGS='-Om1' SPECBUILDONLY=true check-spec
568 # Run a few spec2k tests for arm32 using qemu. Keep the list sorted in 568 # Run a few spec2k tests for arm32 using qemu. Keep the list sorted in
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 610
611 help-check-xtest: 611 help-check-xtest:
612 @cat Makefile.standalone-help/check-xtest.txt 612 @cat Makefile.standalone-help/check-xtest.txt
613 613
614 clean: 614 clean:
615 rm -rf pnacl-sz *.o $(foreach nexe,$(NEXES),$(notdir $(nexe))) \ 615 rm -rf pnacl-sz *.o $(foreach nexe,$(NEXES),$(notdir $(nexe))) \
616 $(OBJDIR) $(SB_OBJDIR) $(SBB_OBJDIR) build/*.bloat.json 616 $(OBJDIR) $(SB_OBJDIR) $(SBB_OBJDIR) build/*.bloat.json
617 617
618 clean-all: clean 618 clean-all: clean
619 rm -rf build/ crosstest/Output/ 619 rm -rf build/ crosstest/Output/
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