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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
505 $(OBJDIR)/unittest: $(OBJDIR) | 505 $(OBJDIR)/unittest: $(OBJDIR) |
506 @mkdir -p $@ | 506 @mkdir -p $@ |
507 | 507 |
508 $(OBJDIR)/unittest/AssemblerX8632: $(OBJDIR)/unittest | 508 $(OBJDIR)/unittest/AssemblerX8632: $(OBJDIR)/unittest |
509 @mkdir -p $@ | 509 @mkdir -p $@ |
510 $(OBJDIR)/unittest/AssemblerX8664: $(OBJDIR)/unittest | 510 $(OBJDIR)/unittest/AssemblerX8664: $(OBJDIR)/unittest |
511 @mkdir -p $@ | 511 @mkdir -p $@ |
512 | 512 |
513 RT_SRC := runtime/szrt.c runtime/szrt_ll.ll runtime/szrt_profiler.c \ | 513 RT_SRC := runtime/szrt.c runtime/szrt_ll.ll runtime/szrt_profiler.c \ |
514 runtime/szrt_asm_x8632.s runtime/szrt_asm_x8664.s \ | 514 runtime/szrt_asm_x8632.s runtime/szrt_asm_x8664.s \ |
515 runtime/szrt_asm_arm32.s runtime/szrt_asan.c | 515 runtime/szrt_asm_arm32.s \ |
516 runtime/szrt_asm_mips32.s \ | |
517 runtime/szrt_asan.c | |
516 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 \ |
517 build/runtime/szrt_nonsfi_x8632.o \ | 519 build/runtime/szrt_nonsfi_x8632.o \ |
518 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 \ |
519 build/runtime/szrt_nonsfi_x8664.o \ | 521 build/runtime/szrt_nonsfi_x8664.o \ |
520 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 \ |
521 build/runtime/szrt_nonsfi_arm32.o \ | 523 build/runtime/szrt_nonsfi_arm32.o \ |
524 build/runtime/szrt_native_mips32.o build/runtime/szrt_sb_mips32.o \ | |
522 build/runtime/szrt_asan_x8632.o build/runtime/szrt_asan_x8664.o \ | 525 build/runtime/szrt_asan_x8632.o build/runtime/szrt_asan_x8664.o \ |
523 build/runtime/szrt_asan_arm32.o | 526 build/runtime/szrt_asan_arm32.o |
524 | 527 |
525 runtime: $(RT_OBJ) | 528 runtime: $(RT_OBJ) |
526 | 529 |
527 # Use runtime.is.built so that build-runtime.py is invoked only once | 530 # Use runtime.is.built so that build-runtime.py is invoked only once |
528 # even in a parallel build. | 531 # even in a parallel build. |
529 .INTERMEDIATE: runtime.is.built | 532 .INTERMEDIATE: runtime.is.built |
530 $(RT_OBJ): runtime.is.built | 533 $(RT_OBJ): runtime.is.built |
531 runtime.is.built: $(RT_SRC) pydir/build-runtime.py | 534 runtime.is.built: $(RT_SRC) pydir/build-runtime.py |
(...skipping 21 matching lines...) Expand all Loading... | |
553 $(FORCEASM_FLAG) \ | 556 $(FORCEASM_FLAG) \ |
554 $(FORCEASM_XTEST_EXCLUDES) \ | 557 $(FORCEASM_XTEST_EXCLUDES) \ |
555 -i x8632,native,sse2 \ | 558 -i x8632,native,sse2 \ |
556 -i x8632,native,sse4.1,test_vector_ops \ | 559 -i x8632,native,sse4.1,test_vector_ops \ |
557 -i x8632,sandbox,sse4.1,Om1 \ | 560 -i x8632,sandbox,sse4.1,Om1 \ |
558 -i x8632,nonsfi,sse2,O2 \ | 561 -i x8632,nonsfi,sse2,O2 \ |
559 -i x8664,native,sse2 \ | 562 -i x8664,native,sse2 \ |
560 -i x8664,native,sse4.1,test_vector_ops \ | 563 -i x8664,native,sse4.1,test_vector_ops \ |
561 -i x8664,sandbox,sse4.1,Om1 \ | 564 -i x8664,sandbox,sse4.1,Om1 \ |
562 -i arm32 \ | 565 -i arm32 \ |
566 -i mips32 \ | |
Jim Stichnoth
2016/08/23 14:56:48
Change these two mips32 lines to this single line:
Jim Stichnoth
2016/09/02 15:49:31
Update: After you "git pull --rebase" to pull in h
obucinac
2016/09/05 16:55:59
Done.
| |
567 -i mips32,native \ | |
563 -e arm32,sandbox,hwdiv-arm | 568 -e arm32,sandbox,hwdiv-arm |
564 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ | 569 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ |
565 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_XTEST_TESTS) | 570 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_XTEST_TESTS) |
566 check-xtest-lite: $(OBJDIR)/pnacl-sz make_symlink runtime \ | 571 check-xtest-lite: $(OBJDIR)/pnacl-sz make_symlink runtime \ |
567 exists-nonsfi-x8632 exists-nonsfi-arm32 crosstest/test_arith_ll.ll | 572 exists-nonsfi-x8632 exists-nonsfi-arm32 crosstest/test_arith_ll.ll |
568 # Do all native/sse2/neon tests, which are relatively fast. | 573 # Do all native/sse2/neon tests, which are relatively fast. |
569 # Limit to test_global+mem_intrin for sandbox+nonsfi because sandbox and | 574 # Limit to test_global+mem_intrin for sandbox+nonsfi because sandbox and |
570 # nonsfi builds are slow, and test_global and mem_intrin are the most | 575 # nonsfi builds are slow, and test_global and mem_intrin are the most |
571 # common sources of problems. | 576 # common sources of problems. |
572 ./pydir/crosstest_generator.py -v --lit \ | 577 ./pydir/crosstest_generator.py -v --lit \ |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
608 ifeq ($(TARGET),x8664) | 613 ifeq ($(TARGET),x8664) |
609 TARGETFLAG=x8664 | 614 TARGETFLAG=x8664 |
610 SETUP=SetupGccX8664Opt | 615 SETUP=SetupGccX8664Opt |
611 SPEC := --filetype=obj | 616 SPEC := --filetype=obj |
612 endif | 617 endif |
613 ifeq ($(TARGET),arm32) | 618 ifeq ($(TARGET),arm32) |
614 TARGETFLAG=arm32 | 619 TARGETFLAG=arm32 |
615 SETUP=SetupGccArmOpt | 620 SETUP=SetupGccArmOpt |
616 SPEC := --filetype=obj | 621 SPEC := --filetype=obj |
617 endif | 622 endif |
623 ifeq ($(TARGET),mips32) | |
Jim Stichnoth
2016/08/23 14:56:48
Should probably add a comment noting that native_c
obucinac
2016/09/05 16:55:59
Done.
| |
624 TARGETFLAG=mips32 | |
625 SETUP=SetupGccMipsOpt | |
626 ;SPEC := --filetype=asm | |
Jim Stichnoth
2016/08/23 14:56:48
Remove the ';'.
(Not sure if that was meant as a
obucinac
2016/09/05 16:55:59
Done.
| |
627 endif | |
618 SPECFLAGS := -O2 | 628 SPECFLAGS := -O2 |
619 SPECRUN := --run | 629 SPECRUN := --run |
620 %.spec2k: % $(OBJDIR)/pnacl-sz make_symlink runtime | 630 %.spec2k: % $(OBJDIR)/pnacl-sz make_symlink runtime |
621 ./pydir/szbuild_spec2k.py -v \ | 631 ./pydir/szbuild_spec2k.py -v \ |
622 $(SPECFLAGS) --target=$(TARGETFLAG) $(SPEC) $< $(SPECRUN) | 632 $(SPECFLAGS) --target=$(TARGETFLAG) $(SPEC) $< $(SPECRUN) |
623 | 633 |
624 check-spec: exists-spec $(ALLSPEC:=.spec2k) | 634 check-spec: exists-spec $(ALLSPEC:=.spec2k) |
625 | 635 |
626 check: check-lit check-unit check-xtest | 636 check: check-lit check-unit check-xtest |
627 | 637 |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
793 | 803 |
794 help-check-xtest: | 804 help-check-xtest: |
795 @cat Makefile.standalone-help/check-xtest.txt | 805 @cat Makefile.standalone-help/check-xtest.txt |
796 | 806 |
797 clean: | 807 clean: |
798 rm -rf pnacl-sz *.o $(foreach nexe,$(NEXES),$(notdir $(nexe))) \ | 808 rm -rf pnacl-sz *.o $(foreach nexe,$(NEXES),$(notdir $(nexe))) \ |
799 $(OBJDIR) $(SB_OBJDIR) $(SBB_OBJDIR) build/*.bloat.json | 809 $(OBJDIR) $(SB_OBJDIR) $(SBB_OBJDIR) build/*.bloat.json |
800 | 810 |
801 clean-all: clean | 811 clean-all: clean |
802 rm -rf build/ crosstest/Output/ | 812 rm -rf build/ crosstest/Output/ |
OLD | NEW |