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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 ifeq ($(TARGET),x8632) | 410 ifeq ($(TARGET),x8632) |
411 TARGETFLAG=x8632 | 411 TARGETFLAG=x8632 |
412 SETUP=SetupGccX8632Opt | 412 SETUP=SetupGccX8632Opt |
413 SPEC := -O2 --filetype=obj | 413 SPEC := -O2 --filetype=obj |
414 endif | 414 endif |
415 ifeq ($(TARGET),arm32) | 415 ifeq ($(TARGET),arm32) |
416 TARGETFLAG=arm32 | 416 TARGETFLAG=arm32 |
417 SETUP=SetupGccArmOpt | 417 SETUP=SetupGccArmOpt |
418 SPEC := -O2 --filetype=asm | 418 SPEC := -O2 --filetype=asm |
419 endif | 419 endif |
420 | 420 SPECFLAGS := |
| 421 SPECBUILDONLY := false |
421 %.spec2k: % $(OBJDIR)/pnacl-sz make_symlink runtime | 422 %.spec2k: % $(OBJDIR)/pnacl-sz make_symlink runtime |
422 » ./pydir/szbuild_spec2k.py -v --force --target=$(TARGETFLAG) $(SPEC) $< | 423 » ./pydir/szbuild_spec2k.py -v --force \ |
423 » ( cd ../../../tests/spec2k; \ | 424 $(SPECFLAGS) --target=$(TARGETFLAG) $(SPEC) $< |
| 425 » $(SPECBUILDONLY) || ( cd ../../../tests/spec2k; \ |
424 ./run_all.sh RunTimedBenchmarks $(SETUP) train $< ) | 426 ./run_all.sh RunTimedBenchmarks $(SETUP) train $< ) |
425 | 427 |
426 check-spec: $(ALLSPEC:=.spec2k) | 428 check-spec: $(ALLSPEC:=.spec2k) |
427 | 429 |
428 check: check-lit check-unit check-xtest | 430 check: check-lit check-unit check-xtest |
429 | 431 |
| 432 NPROCS := $(shell grep processor /proc/cpuinfo | wc -l) |
| 433 |
| 434 check-presubmit: |
| 435 +make -f Makefile.standalone format |
| 436 git diff --quiet |
| 437 +make -f Makefile.standalone \ |
| 438 MINIMAL=1 check |
| 439 +make -f Makefile.standalone \ |
| 440 DEBUG=1 CHECK_X86_ASM=1 check-unit |
| 441 +make -f Makefile.standalone \ |
| 442 check check-spec |
| 443 +make -f Makefile.standalone \ |
| 444 SPECFLAGS='-Om1' SPECBUILDONLY=true check-spec |
| 445 +make -f Makefile.standalone \ |
| 446 SPECFLAGS='--sz=--phi-edge-split=0' check-spec |
| 447 +make -f Makefile.standalone \ |
| 448 TARGET=arm32 SPECBUILDONLY=true check-spec |
| 449 +make -f Makefile.standalone \ |
| 450 TARGET=arm32 SPECFLAGS='-Om1' SPECBUILDONLY=true check-spec |
| 451 +make -f Makefile.standalone \ |
| 452 TARGET=arm32 ALLSPEC='176.gcc 181.mcf 254.gap' check-spec |
| 453 echo Success |
| 454 |
430 FORMAT_BLACKLIST = | 455 FORMAT_BLACKLIST = |
431 # Add one of the following lines for each source file to ignore. | 456 # Add one of the following lines for each source file to ignore. |
432 FORMAT_BLACKLIST += ! -name IceParseInstsTest.cpp | 457 FORMAT_BLACKLIST += ! -name IceParseInstsTest.cpp |
433 FORMAT_BLACKLIST += ! -name IceParseTypesTest.cpp | 458 FORMAT_BLACKLIST += ! -name IceParseTypesTest.cpp |
434 FORMAT_BLACKLIST += ! -name assembler_arm.h | 459 FORMAT_BLACKLIST += ! -name assembler_arm.h |
435 FORMAT_BLACKLIST += ! -name assembler_arm.cc | 460 FORMAT_BLACKLIST += ! -name assembler_arm.cc |
436 format: | 461 format: |
437 $(CLANG_FORMAT_PATH)/clang-format -style=LLVM -i \ | 462 $(CLANG_FORMAT_PATH)/clang-format -style=LLVM -i \ |
438 `find . -regex '.*\.\(c\|h\|cpp\)' $(FORMAT_BLACKLIST)` | 463 `find . -regex '.*\.\(c\|h\|cpp\)' $(FORMAT_BLACKLIST)` |
439 | 464 |
(...skipping 10 matching lines...) Expand all Loading... |
450 | 475 |
451 docs: | 476 docs: |
452 doxygen Doxyfile | 477 doxygen Doxyfile |
453 @echo See file://`pwd`/docs/html/index.html | 478 @echo See file://`pwd`/docs/html/index.html |
454 | 479 |
455 clean: | 480 clean: |
456 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json | 481 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json |
457 | 482 |
458 clean-all: clean | 483 clean-all: clean |
459 rm -rf build/ docs/ | 484 rm -rf build/ docs/ |
OLD | NEW |