| OLD | NEW |
| 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 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 TARGETFLAG=x8664 | 563 TARGETFLAG=x8664 |
| 564 SETUP=SetupGccX8664Opt | 564 SETUP=SetupGccX8664Opt |
| 565 SPEC := --filetype=obj | 565 SPEC := --filetype=obj |
| 566 endif | 566 endif |
| 567 ifeq ($(TARGET),arm32) | 567 ifeq ($(TARGET),arm32) |
| 568 TARGETFLAG=arm32 | 568 TARGETFLAG=arm32 |
| 569 SETUP=SetupGccArmOpt | 569 SETUP=SetupGccArmOpt |
| 570 SPEC := --filetype=obj | 570 SPEC := --filetype=obj |
| 571 endif | 571 endif |
| 572 SPECFLAGS := -O2 | 572 SPECFLAGS := -O2 |
| 573 SPECBUILDONLY := false | 573 SPECRUN := --run |
| 574 %.spec2k: % $(OBJDIR)/pnacl-sz make_symlink runtime | 574 %.spec2k: % $(OBJDIR)/pnacl-sz make_symlink runtime |
| 575 ./pydir/szbuild_spec2k.py -v \ | 575 ./pydir/szbuild_spec2k.py -v \ |
| 576 $(SPECFLAGS) --target=$(TARGETFLAG) $(SPEC) $< | 576 $(SPECFLAGS) --target=$(TARGETFLAG) $(SPEC) $< $(SPECRUN) |
| 577 » $(SPECBUILDONLY) || ( cd ../../../tests/spec2k; \ | |
| 578 » ./run_all.sh RunTimedBenchmarks $(SETUP) train $< ) | |
| 579 | 577 |
| 580 check-spec: exists-spec $(ALLSPEC:=.spec2k) | 578 check-spec: exists-spec $(ALLSPEC:=.spec2k) |
| 581 | 579 |
| 582 check: check-lit check-unit check-xtest | 580 check: check-lit check-unit check-xtest |
| 583 | 581 |
| 584 NONSFI_LOADER_X8632 = \ | 582 NONSFI_LOADER_X8632 = \ |
| 585 $(NACL_ROOT)/scons-out/opt-linux-x86-32/obj/src/nonsfi/loader/nonsfi_loader | 583 $(NACL_ROOT)/scons-out/opt-linux-x86-32/obj/src/nonsfi/loader/nonsfi_loader |
| 586 NONSFI_LOADER_ARM32 = \ | 584 NONSFI_LOADER_ARM32 = \ |
| 587 $(NACL_ROOT)/scons-out/opt-linux-arm/obj/src/nonsfi/loader/nonsfi_loader | 585 $(NACL_ROOT)/scons-out/opt-linux-arm/obj/src/nonsfi/loader/nonsfi_loader |
| 588 SBTC_LIBFILE = $(SB_LLVM_PATH)/lib/libLLVMSupport.a | 586 SBTC_LIBFILE = $(SB_LLVM_PATH)/lib/libLLVMSupport.a |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 GPLUSPLUS=1 compile_only | 630 GPLUSPLUS=1 compile_only |
| 633 # Check the x86 assembler unit tests. | 631 # Check the x86 assembler unit tests. |
| 634 +make -f Makefile.standalone \ | 632 +make -f Makefile.standalone \ |
| 635 DEBUG=1 CHECK_X86_ASM=1 check-unit sb | 633 DEBUG=1 CHECK_X86_ASM=1 check-unit sb |
| 636 # Run lit tests, cross tests, unit tests, and spec2k/x86-32. | 634 # Run lit tests, cross tests, unit tests, and spec2k/x86-32. |
| 637 +make -f Makefile.standalone \ | 635 +make -f Makefile.standalone \ |
| 638 check check-spec | 636 check check-spec |
| 639 # Run spec2k/x86-64. | 637 # Run spec2k/x86-64. |
| 640 +make -f Makefile.standalone \ | 638 +make -f Makefile.standalone \ |
| 641 TARGET=x8664 check-spec | 639 TARGET=x8664 check-spec |
| 640 # Run spec2k/x86-64 with sandboxing. |
| 641 +make -f Makefile.standalone \ |
| 642 SPECFLAGS='-O2 --sandbox' TARGET=x8664 check-spec |
| 642 # Build spec2k under -Om1/x86-32, to check for liveness errors. | 643 # Build spec2k under -Om1/x86-32, to check for liveness errors. |
| 643 +make -f Makefile.standalone \ | 644 +make -f Makefile.standalone \ |
| 644 SPECFLAGS='-Om1' SPECBUILDONLY=true check-spec | 645 SPECFLAGS='-Om1' SPECRUN= check-spec |
| 645 # Build spec2k under -Om1/x86-64, to check for liveness errors. | 646 # Build spec2k under -Om1/x86-64, to check for liveness errors. |
| 646 +make -f Makefile.standalone \ | 647 +make -f Makefile.standalone \ |
| 647 SPECFLAGS='-Om1' TARGET=x8664 SPECBUILDONLY=true check-spec | 648 SPECFLAGS='-Om1' TARGET=x8664 SPECRUN= check-spec |
| 648 # Run spec2k for x86-32 without advanced phi lowering. | 649 # Run spec2k for x86-32 without advanced phi lowering. |
| 649 +make -f Makefile.standalone \ | 650 +make -f Makefile.standalone \ |
| 650 SPECFLAGS='-O2 --sz=--phi-edge-split=0' check-spec | 651 SPECFLAGS='-O2 --sz=--phi-edge-split=0' check-spec |
| 651 # Run spec2k for x86-64 without advanced phi lowering. | 652 # Run spec2k for x86-64 without advanced phi lowering. |
| 652 +make -f Makefile.standalone \ | 653 +make -f Makefile.standalone \ |
| 653 SPECFLAGS='-O2 --sz=--phi-edge-split=0' TARGET=x8664 check-spec | 654 SPECFLAGS='-O2 --sz=--phi-edge-split=0' TARGET=x8664 check-spec |
| 654 # Run cross tests and lit tests to validate filetype=asm output. | 655 # Run cross tests and lit tests to validate filetype=asm output. |
| 655 +make -f Makefile.standalone \ | 656 +make -f Makefile.standalone \ |
| 656 FORCEASM=1 check-xtest check-lit | 657 FORCEASM=1 check-xtest check-lit |
| 657 # Build spec2k for arm32. | 658 # Build spec2k for arm32. |
| 658 +make -f Makefile.standalone \ | 659 +make -f Makefile.standalone \ |
| 659 TARGET=arm32 SPECBUILDONLY=true check-spec | 660 TARGET=arm32 SPECRUN= check-spec |
| 660 # Build spec2k under -Om1/arm32. | 661 # Build spec2k under -Om1/arm32. |
| 661 +make -f Makefile.standalone \ | 662 +make -f Makefile.standalone \ |
| 662 TARGET=arm32 SPECFLAGS='-Om1' SPECBUILDONLY=true check-spec | 663 TARGET=arm32 SPECFLAGS='-Om1' SPECRUN= check-spec |
| 663 # Run a few spec2k tests for arm32 using qemu. Keep the list sorted in | 664 # Run a few spec2k tests for arm32 using qemu. Keep the list sorted in |
| 664 # roughly reverse order of runtime. | 665 # roughly reverse order of runtime. |
| 665 +make -f Makefile.standalone \ | 666 +make -f Makefile.standalone \ |
| 666 TARGET=arm32 ALLSPEC='252.eon 254.gap 176.gcc 181.mcf' check-spec | 667 TARGET=arm32 ALLSPEC='252.eon 254.gap 176.gcc 181.mcf' check-spec |
| 667 # Provide validation of user awesomeness! | 668 # Provide validation of user awesomeness! |
| 668 echo Success | 669 echo Success |
| 669 | 670 |
| 670 presubmit-lite: exists-nonsfi-x8632 exists-nonsfi-arm32 \ | 671 presubmit-lite: exists-nonsfi-x8632 exists-nonsfi-arm32 \ |
| 671 exists-sbtc exists-spec | 672 exists-sbtc exists-spec |
| 672 # Make sure clang-format gets run. | 673 # Make sure clang-format gets run. |
| 673 +make -f Makefile.standalone format | 674 +make -f Makefile.standalone format |
| 674 # Verify MINIMAL build, plus proper usage of REQUIRES in lit tests. | 675 # Verify MINIMAL build, plus proper usage of REQUIRES in lit tests. |
| 675 +make -f Makefile.standalone \ | 676 +make -f Makefile.standalone \ |
| 676 MINIMAL=1 check sb-lite | 677 MINIMAL=1 check sb-lite |
| 677 # Check that there are no g++ build errors or warnings. | 678 # Check that there are no g++ build errors or warnings. |
| 678 +make -f Makefile.standalone \ | 679 +make -f Makefile.standalone \ |
| 679 GPLUSPLUS=1 compile_only | 680 GPLUSPLUS=1 compile_only |
| 680 # Run lit tests, cross tests, unit tests, and spec2k/x86-32. | 681 # Run lit tests, cross tests, unit tests, and spec2k/x86-32. |
| 681 +make -f Makefile.standalone \ | 682 +make -f Makefile.standalone \ |
| 682 check-lit check-unit check-spec | 683 check-lit check-unit check-spec |
| 683 +make -f Makefile.standalone \ | 684 +make -f Makefile.standalone \ |
| 684 check-xtest-lite | 685 check-xtest-lite |
| 685 # Run spec2k/x86-64. | 686 # Run spec2k/x86-64. |
| 686 +make -f Makefile.standalone \ | 687 +make -f Makefile.standalone \ |
| 687 TARGET=x8664 check-spec | 688 TARGET=x8664 check-spec |
| 688 # Build spec2k under -Om1/x86-32, to check for liveness errors. | 689 # Build spec2k under -Om1/x86-32, to check for liveness errors. |
| 689 +make -f Makefile.standalone \ | 690 +make -f Makefile.standalone \ |
| 690 SPECFLAGS='-Om1' SPECBUILDONLY=true check-spec | 691 SPECFLAGS='-Om1' SPECRUN= check-spec |
| 691 # Build spec2k under -Om1/x86-64, to check for liveness errors. | 692 # Build spec2k under -Om1/x86-64, to check for liveness errors. |
| 692 +make -f Makefile.standalone \ | 693 +make -f Makefile.standalone \ |
| 693 SPECFLAGS='-Om1' TARGET=x8664 SPECBUILDONLY=true check-spec | 694 SPECFLAGS='-Om1' TARGET=x8664 SPECRUN= check-spec |
| 694 # Run cross tests and lit tests to validate filetype=asm output. | 695 # Run cross tests and lit tests to validate filetype=asm output. |
| 695 +make -f Makefile.standalone \ | 696 +make -f Makefile.standalone \ |
| 696 FORCEASM=1 check-lit | 697 FORCEASM=1 check-lit |
| 697 +make -f Makefile.standalone \ | 698 +make -f Makefile.standalone \ |
| 698 FORCEASM=1 check-xtest-lite | 699 FORCEASM=1 check-xtest-lite |
| 699 # Build spec2k under -Om1/arm32. | 700 # Build spec2k under -Om1/arm32. |
| 700 +make -f Makefile.standalone \ | 701 +make -f Makefile.standalone \ |
| 701 TARGET=arm32 SPECFLAGS='-Om1' SPECBUILDONLY=true check-spec | 702 TARGET=arm32 SPECFLAGS='-Om1' SPECRUN= check-spec |
| 702 # Run a few spec2k tests for arm32 using qemu. Keep the list sorted in | 703 # Run a few spec2k tests for arm32 using qemu. Keep the list sorted in |
| 703 # roughly reverse order of runtime. | 704 # roughly reverse order of runtime. |
| 704 +make -f Makefile.standalone \ | 705 +make -f Makefile.standalone \ |
| 705 TARGET=arm32 ALLSPEC='254.gap 176.gcc 181.mcf' check-spec | 706 TARGET=arm32 ALLSPEC='254.gap 176.gcc 181.mcf' check-spec |
| 706 # Provide validation of user awesomeness! | 707 # Provide validation of user awesomeness! |
| 707 echo Success | 708 echo Success |
| 708 | 709 |
| 709 FORMAT_BLACKLIST = | 710 FORMAT_BLACKLIST = |
| 710 # Add one of the following lines for each source file to ignore. | 711 # Add one of the following lines for each source file to ignore. |
| 711 FORMAT_BLACKLIST += ! -name IceParseInstsTest.cpp | 712 FORMAT_BLACKLIST += ! -name IceParseInstsTest.cpp |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 | 745 |
| 745 help-check-xtest: | 746 help-check-xtest: |
| 746 @cat Makefile.standalone-help/check-xtest.txt | 747 @cat Makefile.standalone-help/check-xtest.txt |
| 747 | 748 |
| 748 clean: | 749 clean: |
| 749 rm -rf pnacl-sz *.o $(foreach nexe,$(NEXES),$(notdir $(nexe))) \ | 750 rm -rf pnacl-sz *.o $(foreach nexe,$(NEXES),$(notdir $(nexe))) \ |
| 750 $(OBJDIR) $(SB_OBJDIR) $(SBB_OBJDIR) build/*.bloat.json | 751 $(OBJDIR) $(SB_OBJDIR) $(SBB_OBJDIR) build/*.bloat.json |
| 751 | 752 |
| 752 clean-all: clean | 753 clean-all: clean |
| 753 rm -rf build/ crosstest/Output/ | 754 rm -rf build/ crosstest/Output/ |
| OLD | NEW |