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 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 | |
|
John
2015/11/16 14:03:23
\o/
Jim Stichnoth
2015/11/16 18:17:59
Is there a complaint or suggestion here?
| |
| 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 -j$(NPROCS) \ | |
|
John
2015/11/16 14:03:23
Too aggressive? Maybe -j$(NPROCS - 5), or somethin
Jim Stichnoth
2015/11/16 18:17:59
FWIW, I always run -j32 on my z620 and -j4 on my l
| |
| 438 MINIMAL=1 check | |
| 439 make -f Makefile.standalone -j$(NPROCS) \ | |
| 440 DEBUG=1 CHECK_X86_ASM=1 check-unit | |
| 441 make -f Makefile.standalone -j$(NPROCS) \ | |
| 442 check check-spec | |
| 443 make -f Makefile.standalone -j$(NPROCS) \ | |
| 444 SPECFLAGS='-Om1' SPECBUILDONLY=true check-spec | |
| 445 make -f Makefile.standalone -j$(NPROCS) \ | |
| 446 SPECFLAGS='--sz=--phi-edge-split=0' check-spec | |
| 447 make -f Makefile.standalone -j$(NPROCS) \ | |
| 448 TARGET=arm32 SPECBUILDONLY=true check-spec | |
| 449 make -f Makefile.standalone -j$(NPROCS) \ | |
| 450 TARGET=arm32 SPECFLAGS='-Om1' SPECBUILDONLY=true check-spec | |
| 451 echo Success | |
|
John
2015/11/16 14:03:23
Maybe run some light-weight benchmarks as a smoke
Jim Stichnoth
2015/11/16 18:17:59
That's a good idea.
However, for now we have a pr
| |
| 452 | |
| 430 FORMAT_BLACKLIST = | 453 FORMAT_BLACKLIST = |
| 431 # Add one of the following lines for each source file to ignore. | 454 # Add one of the following lines for each source file to ignore. |
| 432 FORMAT_BLACKLIST += ! -name IceParseInstsTest.cpp | 455 FORMAT_BLACKLIST += ! -name IceParseInstsTest.cpp |
| 433 FORMAT_BLACKLIST += ! -name IceParseTypesTest.cpp | 456 FORMAT_BLACKLIST += ! -name IceParseTypesTest.cpp |
| 434 FORMAT_BLACKLIST += ! -name assembler_arm.h | 457 FORMAT_BLACKLIST += ! -name assembler_arm.h |
| 435 FORMAT_BLACKLIST += ! -name assembler_arm.cc | 458 FORMAT_BLACKLIST += ! -name assembler_arm.cc |
| 436 format: | 459 format: |
| 437 $(CLANG_FORMAT_PATH)/clang-format -style=LLVM -i \ | 460 $(CLANG_FORMAT_PATH)/clang-format -style=LLVM -i \ |
| 438 `find . -regex '.*\.\(c\|h\|cpp\)' $(FORMAT_BLACKLIST)` | 461 `find . -regex '.*\.\(c\|h\|cpp\)' $(FORMAT_BLACKLIST)` |
| 439 | 462 |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 450 | 473 |
| 451 docs: | 474 docs: |
| 452 doxygen Doxyfile | 475 doxygen Doxyfile |
| 453 @echo See file://`pwd`/docs/html/index.html | 476 @echo See file://`pwd`/docs/html/index.html |
| 454 | 477 |
| 455 clean: | 478 clean: |
| 456 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json | 479 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json |
| 457 | 480 |
| 458 clean-all: clean | 481 clean-all: clean |
| 459 rm -rf build/ docs/ | 482 rm -rf build/ docs/ |
| OLD | NEW |