Chromium Code Reviews| 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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 534 | 534 |
| 535 check-lit: $(OBJDIR)/pnacl-sz make_symlink runtime | 535 check-lit: $(OBJDIR)/pnacl-sz make_symlink runtime |
| 536 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ | 536 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ |
| 537 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_LIT_TESTS) \ | 537 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_LIT_TESTS) \ |
| 538 $(FORCEASM_LIT_TEST_EXCLUDES) $(FORCEASM_LIT_PARAM) | 538 $(FORCEASM_LIT_TEST_EXCLUDES) $(FORCEASM_LIT_PARAM) |
| 539 | 539 |
| 540 ifdef MINIMAL | 540 ifdef MINIMAL |
| 541 check-xtest check-xtest-lite: $(OBJDIR)/pnacl-sz make_symlink runtime | 541 check-xtest check-xtest-lite: $(OBJDIR)/pnacl-sz make_symlink runtime |
| 542 @echo "Crosstests disabled, minimal build" | 542 @echo "Crosstests disabled, minimal build" |
| 543 else | 543 else |
| 544 ifdef MIPS | |
| 545 check-xtest check-xtest-lite: $(OBJDIR)/pnacl-sz make_symlink runtime \ | |
| 546 crosstest/test_arith_ll.ll | |
| 547 # Do all x8664/native/sse2 tests as a smoke test. | |
| 548 # Add in mips32 tests as they come online. | |
| 549 ./pydir/crosstest_generator.py -v --lit \ | |
| 550 --toolchain-root $(TOOLCHAIN_ROOT) \ | |
| 551 $(FORCEASM_FLAG) \ | |
| 552 $(FORCEASM_XTEST_EXCLUDES) \ | |
| 553 -i x8664,native,sse2 \ | |
| 554 -i mips32,xxx | |
| 555 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ | |
| 556 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_XTEST_TESTS) | |
| 557 else | |
|
obucinac
2016/09/01 16:31:20
It appears
make -f Makefile.standalone check-xtes
| |
| 544 check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime \ | 558 check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime \ |
| 545 exists-nonsfi-x8632 exists-nonsfi-arm32 crosstest/test_arith_ll.ll | 559 exists-nonsfi-x8632 exists-nonsfi-arm32 crosstest/test_arith_ll.ll |
| 546 # Do all native/sse2 tests, but only test_vector_ops for native/sse4.1. | 560 # Do all native/sse2 tests, but only test_vector_ops for native/sse4.1. |
| 547 # For (slow) sandboxed tests, limit to Om1/sse4.1. | 561 # For (slow) sandboxed tests, limit to Om1/sse4.1. |
| 548 # run.py (used to run the sandboxed xtests) does not support | 562 # run.py (used to run the sandboxed xtests) does not support |
| 549 # specifying -cpu cortex-a15 to qemu, hence we disable the | 563 # specifying -cpu cortex-a15 to qemu, hence we disable the |
| 550 # hwdiv-arm tests. | 564 # hwdiv-arm tests. |
| 551 ./pydir/crosstest_generator.py -v --lit \ | 565 ./pydir/crosstest_generator.py -v --lit \ |
| 552 --toolchain-root $(TOOLCHAIN_ROOT) \ | 566 --toolchain-root $(TOOLCHAIN_ROOT) \ |
| 553 $(FORCEASM_FLAG) \ | 567 $(FORCEASM_FLAG) \ |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 581 -i x8664,sse2,O2,test_global \ | 595 -i x8664,sse2,O2,test_global \ |
| 582 -i x8664,sse2,O2,mem_intrin \ | 596 -i x8664,sse2,O2,mem_intrin \ |
| 583 -i arm32,neon,O2,test_global \ | 597 -i arm32,neon,O2,test_global \ |
| 584 -i arm32,neon,O2,mem_intrin \ | 598 -i arm32,neon,O2,mem_intrin \ |
| 585 -e x8664,nonsfi | 599 -e x8664,nonsfi |
| 586 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ | 600 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ |
| 587 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_XTEST_TESTS) | 601 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_XTEST_TESTS) |
| 588 crosstest/test_arith_ll.ll: pydir/gen_test_arith_ll.py | 602 crosstest/test_arith_ll.ll: pydir/gen_test_arith_ll.py |
| 589 python $< > $@ | 603 python $< > $@ |
| 590 endif | 604 endif |
| 605 endif | |
| 591 | 606 |
| 592 check-unit: $(OBJDIR)/run_unittests | 607 check-unit: $(OBJDIR)/run_unittests |
| 593 $(OBJDIR)/run_unittests | 608 $(OBJDIR)/run_unittests |
| 594 | 609 |
| 595 # List the spec2k components in roughly reverse order of runtime, to help with | 610 # List the spec2k components in roughly reverse order of runtime, to help with |
| 596 # parallel execution speed. | 611 # parallel execution speed. |
| 597 ALLSPEC := 253.perlbmk 177.mesa 188.ammp 256.bzip2 164.gzip 179.art 183.equake \ | 612 ALLSPEC := 253.perlbmk 177.mesa 188.ammp 256.bzip2 164.gzip 179.art 183.equake \ |
| 598 175.vpr 176.gcc 181.mcf 186.crafty 197.parser 254.gap 255.vortex \ | 613 175.vpr 176.gcc 181.mcf 186.crafty 197.parser 254.gap 255.vortex \ |
| 599 300.twolf 252.eon | 614 300.twolf 252.eon |
| 600 .PHONY: $(ALLSPEC) | 615 .PHONY: $(ALLSPEC) |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 614 TARGETFLAG=arm32 | 629 TARGETFLAG=arm32 |
| 615 SETUP=SetupGccArmOpt | 630 SETUP=SetupGccArmOpt |
| 616 SPEC := --filetype=obj | 631 SPEC := --filetype=obj |
| 617 endif | 632 endif |
| 618 SPECFLAGS := -O2 | 633 SPECFLAGS := -O2 |
| 619 SPECRUN := --run | 634 SPECRUN := --run |
| 620 %.spec2k: % $(OBJDIR)/pnacl-sz make_symlink runtime | 635 %.spec2k: % $(OBJDIR)/pnacl-sz make_symlink runtime |
| 621 ./pydir/szbuild_spec2k.py -v \ | 636 ./pydir/szbuild_spec2k.py -v \ |
| 622 $(SPECFLAGS) --target=$(TARGETFLAG) $(SPEC) $< $(SPECRUN) | 637 $(SPECFLAGS) --target=$(TARGETFLAG) $(SPEC) $< $(SPECRUN) |
| 623 | 638 |
| 639 ifdef MIPS | |
| 640 # Don't test spec2k on mips32, at least not yet. | |
| 641 check-spec: | |
| 642 else | |
| 624 check-spec: exists-spec $(ALLSPEC:=.spec2k) | 643 check-spec: exists-spec $(ALLSPEC:=.spec2k) |
| 644 endif | |
| 625 | 645 |
| 626 check: check-lit check-unit check-xtest | 646 check: check-lit check-unit check-xtest |
| 627 | 647 |
| 628 NONSFI_LOADER_X8632 = \ | 648 NONSFI_LOADER_X8632 = \ |
| 629 $(NACL_ROOT)/scons-out/opt-linux-x86-32/obj/src/nonsfi/loader/nonsfi_loader | 649 $(NACL_ROOT)/scons-out/opt-linux-x86-32/obj/src/nonsfi/loader/nonsfi_loader |
| 630 NONSFI_LOADER_ARM32 = \ | 650 NONSFI_LOADER_ARM32 = \ |
| 631 $(NACL_ROOT)/scons-out/opt-linux-arm/obj/src/nonsfi/loader/nonsfi_loader | 651 $(NACL_ROOT)/scons-out/opt-linux-arm/obj/src/nonsfi/loader/nonsfi_loader |
| 632 SBTC_LIBFILE = $(SB_LLVM_PATH)/lib/libLLVMSupport.a | 652 SBTC_LIBFILE = $(SB_LLVM_PATH)/lib/libLLVMSupport.a |
| 633 SPEC_SAMPLE_PEXE = $(NACL_ROOT)/tests/spec2k/176.gcc/gcc.opt.stripped.pexe | 653 SPEC_SAMPLE_PEXE = $(NACL_ROOT)/tests/spec2k/176.gcc/gcc.opt.stripped.pexe |
| 634 | 654 |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 657 | 677 |
| 658 exists-spec: | 678 exists-spec: |
| 659 @if [ ! -f $(SPEC_SAMPLE_PEXE) ] ; then \ | 679 @if [ ! -f $(SPEC_SAMPLE_PEXE) ] ; then \ |
| 660 echo "Missing file $(SPEC_SAMPLE_PEXE)"; \ | 680 echo "Missing file $(SPEC_SAMPLE_PEXE)"; \ |
| 661 echo "Consider running" \ | 681 echo "Consider running" \ |
| 662 "'./run_all.sh BuildBenchmarks 0 SetupPnaclX8632Opt'" \ | 682 "'./run_all.sh BuildBenchmarks 0 SetupPnaclX8632Opt'" \ |
| 663 "in the native_client/tests/spec2k directory."; \ | 683 "in the native_client/tests/spec2k directory."; \ |
| 664 exit 1 ; \ | 684 exit 1 ; \ |
| 665 fi | 685 fi |
| 666 | 686 |
| 687 ifdef MIPS | |
| 688 check-presubmit presubmit: exists-sbtc | |
| 689 # Make sure clang-format gets run. | |
| 690 +make -f Makefile.standalone format | |
| 691 # Verify MINIMAL build, plus proper usage of REQUIRES in lit tests. | |
| 692 +make -f Makefile.standalone \ | |
| 693 MINIMAL=1 check | |
| 694 # Check that there are no g++ build errors or warnings. | |
| 695 +make -f Makefile.standalone \ | |
| 696 GPLUSPLUS=1 compile_only | |
| 697 # Run lit tests, cross tests, and unit tests. | |
| 698 +make -f Makefile.standalone \ | |
| 699 check | |
| 700 # Check a sandboxed translator build. | |
| 701 +make -f Makefile.standalone \ | |
| 702 DEBUG=1 sb | |
| 703 # Provide validation of user awesomeness! | |
| 704 echo Success | |
| 705 else | |
| 667 check-presubmit presubmit: exists-nonsfi-x8632 exists-nonsfi-arm32 \ | 706 check-presubmit presubmit: exists-nonsfi-x8632 exists-nonsfi-arm32 \ |
| 668 exists-sbtc exists-spec | 707 exists-sbtc exists-spec |
| 669 # Make sure clang-format gets run. | 708 # Make sure clang-format gets run. |
| 670 +make -f Makefile.standalone format | 709 +make -f Makefile.standalone format |
| 671 # Verify MINIMAL build, plus proper usage of REQUIRES in lit tests. | 710 # Verify MINIMAL build, plus proper usage of REQUIRES in lit tests. |
| 672 +make -f Makefile.standalone \ | 711 +make -f Makefile.standalone \ |
| 673 MINIMAL=1 check | 712 MINIMAL=1 check |
| 674 # Check that there are no g++ build errors or warnings. | 713 # Check that there are no g++ build errors or warnings. |
| 675 +make -f Makefile.standalone \ | 714 +make -f Makefile.standalone \ |
| 676 GPLUSPLUS=1 compile_only | 715 GPLUSPLUS=1 compile_only |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 706 TARGET=arm32 SPECRUN= check-spec | 745 TARGET=arm32 SPECRUN= check-spec |
| 707 # Build spec2k under -Om1/arm32. | 746 # Build spec2k under -Om1/arm32. |
| 708 +make -f Makefile.standalone \ | 747 +make -f Makefile.standalone \ |
| 709 TARGET=arm32 SPECFLAGS='-Om1' SPECRUN= check-spec | 748 TARGET=arm32 SPECFLAGS='-Om1' SPECRUN= check-spec |
| 710 # Run a few spec2k tests for arm32 using qemu. Keep the list sorted in | 749 # Run a few spec2k tests for arm32 using qemu. Keep the list sorted in |
| 711 # roughly reverse order of runtime. | 750 # roughly reverse order of runtime. |
| 712 +make -f Makefile.standalone \ | 751 +make -f Makefile.standalone \ |
| 713 TARGET=arm32 ALLSPEC='252.eon 254.gap 176.gcc 181.mcf' check-spec | 752 TARGET=arm32 ALLSPEC='252.eon 254.gap 176.gcc 181.mcf' check-spec |
| 714 # Provide validation of user awesomeness! | 753 # Provide validation of user awesomeness! |
| 715 echo Success | 754 echo Success |
| 755 endif | |
| 716 | 756 |
| 717 presubmit-lite: exists-nonsfi-x8632 exists-nonsfi-arm32 \ | 757 presubmit-lite: exists-nonsfi-x8632 exists-nonsfi-arm32 \ |
| 718 exists-sbtc exists-spec | 758 exists-sbtc exists-spec |
| 719 # Make sure clang-format gets run. | 759 # Make sure clang-format gets run. |
| 720 +make -f Makefile.standalone format | 760 +make -f Makefile.standalone format |
| 721 # Verify MINIMAL build, plus proper usage of REQUIRES in lit tests. | 761 # Verify MINIMAL build, plus proper usage of REQUIRES in lit tests. |
| 722 +make -f Makefile.standalone \ | 762 +make -f Makefile.standalone \ |
| 723 MINIMAL=1 check sb-lite | 763 MINIMAL=1 check sb-lite |
| 724 # Check that there are no g++ build errors or warnings. | 764 # Check that there are no g++ build errors or warnings. |
| 725 +make -f Makefile.standalone \ | 765 +make -f Makefile.standalone \ |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 793 | 833 |
| 794 help-check-xtest: | 834 help-check-xtest: |
| 795 @cat Makefile.standalone-help/check-xtest.txt | 835 @cat Makefile.standalone-help/check-xtest.txt |
| 796 | 836 |
| 797 clean: | 837 clean: |
| 798 rm -rf pnacl-sz *.o $(foreach nexe,$(NEXES),$(notdir $(nexe))) \ | 838 rm -rf pnacl-sz *.o $(foreach nexe,$(NEXES),$(notdir $(nexe))) \ |
| 799 $(OBJDIR) $(SB_OBJDIR) $(SBB_OBJDIR) build/*.bloat.json | 839 $(OBJDIR) $(SB_OBJDIR) $(SBB_OBJDIR) build/*.bloat.json |
| 800 | 840 |
| 801 clean-all: clean | 841 clean-all: clean |
| 802 rm -rf build/ crosstest/Output/ | 842 rm -rf build/ crosstest/Output/ |
| OLD | NEW |