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 15 matching lines...) Expand all Loading... | |
| 26 # tools like qemu. | 26 # tools like qemu. |
| 27 TOOLCHAIN_ROOT ?= $(shell readlink -e $(NACL_ROOT)/toolchain/linux_x86) | 27 TOOLCHAIN_ROOT ?= $(shell readlink -e $(NACL_ROOT)/toolchain/linux_x86) |
| 28 | 28 |
| 29 # PNACL_TOOLCHAIN_ROOT is the location of the PNaCl toolchain. | 29 # PNACL_TOOLCHAIN_ROOT is the location of the PNaCl toolchain. |
| 30 # This is used as the default root for finding binutils, libcxx, etc. | 30 # This is used as the default root for finding binutils, libcxx, etc. |
| 31 PNACL_TOOLCHAIN_ROOT ?= $(shell readlink -e $(TOOLCHAIN_ROOT)/pnacl_newlib_raw) | 31 PNACL_TOOLCHAIN_ROOT ?= $(shell readlink -e $(TOOLCHAIN_ROOT)/pnacl_newlib_raw) |
| 32 | 32 |
| 33 # The location of PNaCl tools (e.g., binutils objdump, pnacl-clang++, etc.). | 33 # The location of PNaCl tools (e.g., binutils objdump, pnacl-clang++, etc.). |
| 34 PNACL_BIN_PATH ?= $(shell readlink -e $(PNACL_TOOLCHAIN_ROOT)/bin) | 34 PNACL_BIN_PATH ?= $(shell readlink -e $(PNACL_TOOLCHAIN_ROOT)/bin) |
| 35 | 35 |
| 36 # Allow tests_lit to be overidden | |
| 37 TESTS_LIT ?= tests_lit | |
|
Jim Stichnoth
2016/01/15 19:20:58
Currently lit is used two situations:
1. "make ch
| |
| 38 | |
| 36 # Hack to auto-detect autoconf versus cmake build of LLVM. If the LLVM tools | 39 # Hack to auto-detect autoconf versus cmake build of LLVM. If the LLVM tools |
| 37 # were dynamically linked with something like libLLVM-3.7svn.so, it is an | 40 # were dynamically linked with something like libLLVM-3.7svn.so, it is an |
| 38 # autoconf build, otherwise it is a cmake build. AUTOCONF is set to 0 for | 41 # autoconf build, otherwise it is a cmake build. AUTOCONF is set to 0 for |
| 39 # cmake, nonzero for autoconf. | 42 # cmake, nonzero for autoconf. |
| 40 AUTOCONF ?= $(shell ldd $(PNACL_BIN_PATH)/opt | grep -c libLLVM-) | 43 AUTOCONF ?= $(shell ldd $(PNACL_BIN_PATH)/opt | grep -c libLLVM-) |
| 41 | 44 |
| 42 # CLANG_PATH is the location of the clang compiler to use for building | 45 # CLANG_PATH is the location of the clang compiler to use for building |
| 43 # the host binaries. | 46 # the host binaries. |
| 44 CLANG_PATH ?= $(shell readlink -e \ | 47 CLANG_PATH ?= $(shell readlink -e \ |
| 45 $(NACL_ROOT)/../third_party/llvm-build/Release+Asserts/bin) | 48 $(NACL_ROOT)/../third_party/llvm-build/Release+Asserts/bin) |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 408 # Use runtime.is.built so that build-runtime.py is invoked only once | 411 # Use runtime.is.built so that build-runtime.py is invoked only once |
| 409 # even in a parallel build. | 412 # even in a parallel build. |
| 410 .INTERMEDIATE: runtime.is.built | 413 .INTERMEDIATE: runtime.is.built |
| 411 $(RT_OBJ): runtime.is.built | 414 $(RT_OBJ): runtime.is.built |
| 412 runtime.is.built: $(RT_SRC) pydir/build-runtime.py | 415 runtime.is.built: $(RT_SRC) pydir/build-runtime.py |
| 413 @echo ================ Building Subzero runtime ================ | 416 @echo ================ Building Subzero runtime ================ |
| 414 ./pydir/build-runtime.py -v --pnacl-root $(PNACL_TOOLCHAIN_ROOT) | 417 ./pydir/build-runtime.py -v --pnacl-root $(PNACL_TOOLCHAIN_ROOT) |
| 415 | 418 |
| 416 check-lit: $(OBJDIR)/pnacl-sz make_symlink | 419 check-lit: $(OBJDIR)/pnacl-sz make_symlink |
| 417 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ | 420 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ |
| 418 » $(LLVM_SRC_PATH)/utils/lit/lit.py -sv tests_lit \ | 421 » $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(TESTS_LIT) \ |
| 419 $(FORCEASM_LIT_TEST_EXCLUDES) $(FORCEASM_LIT_PARAM) | 422 $(FORCEASM_LIT_TEST_EXCLUDES) $(FORCEASM_LIT_PARAM) |
| 420 | 423 |
| 421 ifdef MINIMAL | 424 ifdef MINIMAL |
| 422 check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime | 425 check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime |
| 423 @echo "Crosstests disabled, minimal build" | 426 @echo "Crosstests disabled, minimal build" |
| 424 else | 427 else |
| 425 check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime | 428 check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime |
| 426 # Do all native/sse2 tests, but only test_vector_ops for native/sse4.1. | 429 # Do all native/sse2 tests, but only test_vector_ops for native/sse4.1. |
| 427 # For (slow) sandboxed tests, limit to Om1/sse4.1. | 430 # For (slow) sandboxed tests, limit to Om1/sse4.1. |
| 428 ./pydir/crosstest_generator.py -v --lit \ | 431 ./pydir/crosstest_generator.py -v --lit \ |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 540 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html | 543 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html |
| 541 | 544 |
| 542 docs: | 545 docs: |
| 543 make -C docs -f Makefile.standalone | 546 make -C docs -f Makefile.standalone |
| 544 | 547 |
| 545 clean: | 548 clean: |
| 546 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json | 549 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json |
| 547 | 550 |
| 548 clean-all: clean | 551 clean-all: clean |
| 549 rm -rf build/ crosstest/Output/ | 552 rm -rf build/ crosstest/Output/ |
| OLD | NEW |