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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 506 $(OBJDIR)/unittest: $(OBJDIR) | 506 $(OBJDIR)/unittest: $(OBJDIR) |
| 507 @mkdir -p $@ | 507 @mkdir -p $@ |
| 508 | 508 |
| 509 $(OBJDIR)/unittest/AssemblerX8632: $(OBJDIR)/unittest | 509 $(OBJDIR)/unittest/AssemblerX8632: $(OBJDIR)/unittest |
| 510 @mkdir -p $@ | 510 @mkdir -p $@ |
| 511 $(OBJDIR)/unittest/AssemblerX8664: $(OBJDIR)/unittest | 511 $(OBJDIR)/unittest/AssemblerX8664: $(OBJDIR)/unittest |
| 512 @mkdir -p $@ | 512 @mkdir -p $@ |
| 513 | 513 |
| 514 RT_SRC := runtime/szrt.c runtime/szrt_ll.ll runtime/szrt_profiler.c \ | 514 RT_SRC := runtime/szrt.c runtime/szrt_ll.ll runtime/szrt_profiler.c \ |
| 515 runtime/szrt_asm_x8632.s runtime/szrt_asm_x8664.s \ | 515 runtime/szrt_asm_x8632.s runtime/szrt_asm_x8664.s \ |
| 516 runtime/szrt_asm_arm32.s runtime/szrt_asan.c | 516 runtime/szrt_asm_arm32.s \ |
|
Jim Stichnoth
2016/09/23 05:29:11
Revert this change? (i.e. put them on the same li
obucinac
2016/09/23 13:22:02
Done.
| |
| 517 runtime/szrt_asan.c | |
| 517 RT_OBJ := build/runtime/szrt_native_x8632.o build/runtime/szrt_sb_x8632.o \ | 518 RT_OBJ := build/runtime/szrt_native_x8632.o build/runtime/szrt_sb_x8632.o \ |
| 518 build/runtime/szrt_nonsfi_x8632.o \ | 519 build/runtime/szrt_nonsfi_x8632.o \ |
| 519 build/runtime/szrt_native_x8664.o build/runtime/szrt_sb_x8664.o \ | 520 build/runtime/szrt_native_x8664.o build/runtime/szrt_sb_x8664.o \ |
| 520 build/runtime/szrt_nonsfi_x8664.o \ | 521 build/runtime/szrt_nonsfi_x8664.o \ |
| 521 build/runtime/szrt_native_arm32.o build/runtime/szrt_sb_arm32.o \ | 522 build/runtime/szrt_native_arm32.o build/runtime/szrt_sb_arm32.o \ |
| 522 build/runtime/szrt_nonsfi_arm32.o \ | 523 build/runtime/szrt_nonsfi_arm32.o \ |
| 523 build/runtime/szrt_asan_x8632.o build/runtime/szrt_asan_x8664.o \ | 524 build/runtime/szrt_asan_x8632.o build/runtime/szrt_asan_x8664.o \ |
| 524 build/runtime/szrt_asan_arm32.o | 525 build/runtime/szrt_asan_arm32.o |
| 525 | 526 |
| 527 EXCLUDED_RT := | |
| 528 ifdef MIPS | |
| 529 RT_SRC += runtime/szrt_asm_mips32.s | |
| 530 RT_OBJ += build/runtime/szrt_native_mips32.o build/runtime/szrt_sb_mips32.o | |
| 531 else | |
| 532 EXCLUDED_RT += --exclude-target=mips32 | |
| 533 endif | |
| 534 | |
| 526 runtime: $(RT_OBJ) | 535 runtime: $(RT_OBJ) |
| 527 | 536 |
| 528 # Use runtime.is.built so that build-runtime.py is invoked only once | 537 # Use runtime.is.built so that build-runtime.py is invoked only once |
| 529 # even in a parallel build. | 538 # even in a parallel build. |
| 530 .INTERMEDIATE: runtime.is.built | 539 .INTERMEDIATE: runtime.is.built |
| 531 $(RT_OBJ): runtime.is.built | 540 $(RT_OBJ): runtime.is.built |
| 532 runtime.is.built: $(RT_SRC) pydir/build-runtime.py | 541 runtime.is.built: $(RT_SRC) pydir/build-runtime.py |
| 533 @echo ================ Building Subzero runtime ================ | 542 @echo ================ Building Subzero runtime ================ |
| 534 » ./pydir/build-runtime.py -v --pnacl-root $(PNACL_TOOLCHAIN_ROOT) | 543 » ./pydir/build-runtime.py -v --pnacl-root $(PNACL_TOOLCHAIN_ROOT) \ |
| 544 $(EXCLUDED_RT) | |
| 535 | 545 |
| 536 check-lit: $(OBJDIR)/pnacl-sz make_symlink runtime | 546 check-lit: $(OBJDIR)/pnacl-sz make_symlink runtime |
| 537 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ | 547 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ |
| 538 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_LIT_TESTS) \ | 548 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_LIT_TESTS) \ |
| 539 $(FORCEASM_LIT_TEST_EXCLUDES) $(FORCEASM_LIT_PARAM) | 549 $(FORCEASM_LIT_TEST_EXCLUDES) $(FORCEASM_LIT_PARAM) |
| 540 | 550 |
| 541 ifdef MINIMAL | 551 ifdef MINIMAL |
| 542 check-xtest check-xtest-lite: $(OBJDIR)/pnacl-sz make_symlink runtime | 552 check-xtest check-xtest-lite: $(OBJDIR)/pnacl-sz make_symlink runtime |
| 543 @echo "Crosstests disabled, minimal build" | 553 @echo "Crosstests disabled, minimal build" |
| 544 else | 554 else |
| 545 ifdef MIPS | 555 ifdef MIPS |
| 546 check-xtest check-xtest-lite: $(OBJDIR)/pnacl-sz make_symlink runtime \ | 556 check-xtest check-xtest-lite: $(OBJDIR)/pnacl-sz make_symlink runtime \ |
| 547 crosstest/test_arith_ll.ll | 557 crosstest/test_arith_ll.ll |
| 548 # Do all x8664/native/sse2 tests as a smoke test. | 558 # Do all x8664/native/sse2 tests as a smoke test. |
| 549 # Add in mips32 tests as they come online. | 559 # Add in mips32 tests as they come online. |
| 550 ./pydir/crosstest_generator.py -v --lit \ | 560 ./pydir/crosstest_generator.py -v --lit \ |
| 551 --toolchain-root $(TOOLCHAIN_ROOT) \ | 561 --toolchain-root $(TOOLCHAIN_ROOT) \ |
| 552 $(FORCEASM_FLAG) \ | 562 $(FORCEASM_FLAG) \ |
| 553 $(FORCEASM_XTEST_EXCLUDES) \ | 563 $(FORCEASM_XTEST_EXCLUDES) \ |
| 554 -i x8664,native,sse2 \ | 564 -i x8664,native,sse2 \ |
| 555 -i mips32,xxx | 565 -i mips32,native,Om1,simple_loop \ |
| 566 -i mips32,native,Om1,test_strengthreduce | |
| 556 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ | 567 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ |
| 557 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_XTEST_TESTS) | 568 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_XTEST_TESTS) |
| 558 else | 569 else |
| 559 check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime \ | 570 check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime \ |
| 560 exists-nonsfi-x8632 exists-nonsfi-arm32 crosstest/test_arith_ll.ll | 571 exists-nonsfi-x8632 exists-nonsfi-arm32 crosstest/test_arith_ll.ll |
| 561 # Do all native/sse2 tests, but only test_vector_ops for native/sse4.1. | 572 # Do all native/sse2 tests, but only test_vector_ops for native/sse4.1. |
| 562 # For (slow) sandboxed tests, limit to Om1/sse4.1. | 573 # For (slow) sandboxed tests, limit to Om1/sse4.1. |
| 563 # run.py (used to run the sandboxed xtests) does not support | 574 # run.py (used to run the sandboxed xtests) does not support |
| 564 # specifying -cpu cortex-a15 to qemu, hence we disable the | 575 # specifying -cpu cortex-a15 to qemu, hence we disable the |
| 565 # hwdiv-arm tests. | 576 # hwdiv-arm tests. |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 624 ifeq ($(TARGET),x8664) | 635 ifeq ($(TARGET),x8664) |
| 625 TARGETFLAG=x8664 | 636 TARGETFLAG=x8664 |
| 626 SETUP=SetupGccX8664Opt | 637 SETUP=SetupGccX8664Opt |
| 627 SPEC := --filetype=obj | 638 SPEC := --filetype=obj |
| 628 endif | 639 endif |
| 629 ifeq ($(TARGET),arm32) | 640 ifeq ($(TARGET),arm32) |
| 630 TARGETFLAG=arm32 | 641 TARGETFLAG=arm32 |
| 631 SETUP=SetupGccArmOpt | 642 SETUP=SetupGccArmOpt |
| 632 SPEC := --filetype=obj | 643 SPEC := --filetype=obj |
| 633 endif | 644 endif |
| 645 ifeq ($(TARGET),mips32) | |
| 646 # native_client/tests/spec2k/{Makefile.common,run_all.sh} do not currently | |
| 647 # have MIPS configs, so those would need to be added for proper Subzero | |
| 648 # testing. | |
| 649 TARGETFLAG=mips32 | |
| 650 SETUP=SetupGccMipsOpt | |
| 651 SPEC := --filetype=asm | |
| 652 endif | |
| 634 SPECFLAGS := -O2 | 653 SPECFLAGS := -O2 |
| 635 SPECRUN := --run | 654 SPECRUN := --run |
| 636 %.spec2k: % $(OBJDIR)/pnacl-sz make_symlink runtime | 655 %.spec2k: % $(OBJDIR)/pnacl-sz make_symlink runtime |
| 637 ./pydir/szbuild_spec2k.py -v \ | 656 ./pydir/szbuild_spec2k.py -v \ |
| 638 $(SPECFLAGS) --target=$(TARGETFLAG) $(SPEC) $< $(SPECRUN) | 657 $(SPECFLAGS) --target=$(TARGETFLAG) $(SPEC) $< $(SPECRUN) |
| 639 | 658 |
| 640 ifdef MIPS | 659 ifdef MIPS |
| 641 # Don't test spec2k on mips32, at least not yet. | 660 # Don't test spec2k on mips32, at least not yet. |
| 642 check-spec: | 661 check-spec: |
| 643 else | 662 else |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 834 | 853 |
| 835 help-check-xtest: | 854 help-check-xtest: |
| 836 @cat Makefile.standalone-help/check-xtest.txt | 855 @cat Makefile.standalone-help/check-xtest.txt |
| 837 | 856 |
| 838 clean: | 857 clean: |
| 839 rm -rf pnacl-sz *.o $(foreach nexe,$(NEXES),$(notdir $(nexe))) \ | 858 rm -rf pnacl-sz *.o $(foreach nexe,$(NEXES),$(notdir $(nexe))) \ |
| 840 $(OBJDIR) $(SB_OBJDIR) $(SBB_OBJDIR) build/*.bloat.json | 859 $(OBJDIR) $(SB_OBJDIR) $(SBB_OBJDIR) build/*.bloat.json |
| 841 | 860 |
| 842 clean-all: clean | 861 clean-all: clean |
| 843 rm -rf build/ crosstest/Output/ | 862 rm -rf build/ crosstest/Output/ |
| OLD | NEW |