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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 393 check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime | 393 check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime |
| 394 # Do all native/sse2 tests, but only test_vector_ops for native/sse4.1. | 394 # Do all native/sse2 tests, but only test_vector_ops for native/sse4.1. |
| 395 # For (slow) sandboxed tests, limit to Om1/sse4.1. | 395 # For (slow) sandboxed tests, limit to Om1/sse4.1. |
| 396 # TODO(jpp): implement x8664 sandbox, then enable xtests. | 396 # TODO(jpp): implement x8664 sandbox, then enable xtests. |
| 397 # TODO(jpp): reenable the x86-64 tests. | 397 # TODO(jpp): reenable the x86-64 tests. |
| 398 ./pydir/crosstest_generator.py -v --lit \ | 398 ./pydir/crosstest_generator.py -v --lit \ |
| 399 --toolchain-root $(TOOLCHAIN_ROOT) \ | 399 --toolchain-root $(TOOLCHAIN_ROOT) \ |
| 400 -i x8632,native,sse2 \ | 400 -i x8632,native,sse2 \ |
| 401 -i x8632,native,sse4.1,test_vector_ops \ | 401 -i x8632,native,sse4.1,test_vector_ops \ |
| 402 -i x8632,sandbox,sse4.1,Om1 \ | 402 -i x8632,sandbox,sse4.1,Om1 \ |
| 403 -e x8664,native,sse2 \ | 403 -e x8664,native,sse2 \ |
|
Jim Stichnoth
2015/12/22 15:36:16
This doesn't actually do any x8664 tests, since no
John
2015/12/22 16:20:01
I know. This is on purpose: if I enable them befor
Jim Stichnoth
2015/12/22 16:26:44
Not true. It's been common practice in Subzero to
| |
| 404 -e x8664,native,sse4.1,test_vector_ops \ | 404 -e x8664,native,sse4.1,test_vector_ops \ |
| 405 -e x8664,native,sse2,test_global \ | 405 -e x8664,sandbox,sse4.1,Om1 \ |
| 406 -i arm32,neon \ | 406 -i arm32,neon \ |
| 407 -e arm32,neon,test_vector_ops \ | 407 -e arm32,neon,test_vector_ops \ |
| 408 -e arm32,neon,test_select | 408 -e arm32,neon,test_select |
| 409 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ | 409 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ |
| 410 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv crosstest/Output | 410 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv crosstest/Output |
| 411 endif | 411 endif |
| 412 | 412 |
| 413 check-unit: $(OBJDIR)/run_unittests | 413 check-unit: $(OBJDIR)/run_unittests |
| 414 $(OBJDIR)/run_unittests | 414 $(OBJDIR)/run_unittests |
| 415 | 415 |
| 416 # List the spec2k components in roughly reverse order of runtime, to help with | 416 # List the spec2k components in roughly reverse order of runtime, to help with |
| 417 # parallel execution speed. | 417 # parallel execution speed. |
| 418 ALLSPEC := 253.perlbmk 177.mesa 188.ammp 256.bzip2 164.gzip 179.art 183.equake \ | 418 ALLSPEC := 253.perlbmk 177.mesa 188.ammp 256.bzip2 164.gzip 179.art 183.equake \ |
| 419 175.vpr 176.gcc 181.mcf 186.crafty 197.parser 254.gap 255.vortex \ | 419 175.vpr 176.gcc 181.mcf 186.crafty 197.parser 254.gap 255.vortex \ |
| 420 300.twolf 252.eon | 420 300.twolf 252.eon |
| 421 .PHONY: $(ALLSPEC) | 421 .PHONY: $(ALLSPEC) |
| 422 | 422 |
| 423 TARGET := x8632 | 423 TARGET := x8632 |
| 424 ifeq ($(TARGET),x8632) | 424 ifeq ($(TARGET),x8632) |
| 425 TARGETFLAG=x8632 | 425 TARGETFLAG=x8632 |
| 426 SETUP=SetupGccX8632Opt | 426 SETUP=SetupGccX8632Opt |
| 427 SPEC := -O2 --filetype=obj | 427 SPEC := -O2 --filetype=obj |
| 428 endif | 428 endif |
| 429 ifeq ($(TARGET),x8664) | |
| 430 TARGETFLAG=x8664 | |
| 431 SETUP=SetupGccX8664Opt | |
| 432 SPEC := -O2 --filetype=obj | |
| 433 endif | |
| 429 ifeq ($(TARGET),arm32) | 434 ifeq ($(TARGET),arm32) |
| 430 TARGETFLAG=arm32 | 435 TARGETFLAG=arm32 |
| 431 SETUP=SetupGccArmOpt | 436 SETUP=SetupGccArmOpt |
| 432 SPEC := -O2 --filetype=asm | 437 SPEC := -O2 --filetype=asm |
| 433 endif | 438 endif |
| 434 SPECFLAGS := | 439 SPECFLAGS := |
| 435 SPECBUILDONLY := false | 440 SPECBUILDONLY := false |
| 436 %.spec2k: % $(OBJDIR)/pnacl-sz make_symlink runtime | 441 %.spec2k: % $(OBJDIR)/pnacl-sz make_symlink runtime |
| 437 ./pydir/szbuild_spec2k.py -v --force \ | 442 ./pydir/szbuild_spec2k.py -v --force \ |
| 438 $(SPECFLAGS) --target=$(TARGETFLAG) $(SPEC) $< | 443 $(SPECFLAGS) --target=$(TARGETFLAG) $(SPEC) $< |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 499 | 504 |
| 500 docs: | 505 docs: |
| 501 doxygen Doxyfile | 506 doxygen Doxyfile |
| 502 @echo See file://`pwd`/docs/html/index.html | 507 @echo See file://`pwd`/docs/html/index.html |
| 503 | 508 |
| 504 clean: | 509 clean: |
| 505 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json | 510 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json |
| 506 | 511 |
| 507 clean-all: clean | 512 clean-all: clean |
| 508 rm -rf build/ docs/ | 513 rm -rf build/ docs/ |
| OLD | NEW |