| 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> LLVM_BIN_PATH=<path> \ | 5 # make LLVM_SRC_PATH=<path> LLVM_BIN_PATH=<path> \ |
| 6 # LIBCXX_INSTALL_PATH=<path> CLANG_PATH=<path> \ | 6 # LIBCXX_INSTALL_PATH=<path> CLANG_PATH=<path> \ |
| 7 # BINUTILS_BIN_PATH=<path> ... | 7 # BINUTILS_BIN_PATH=<path> ... |
| 8 # | 8 # |
| 9 | 9 |
| 10 # LLVM_SRC_PATH is the path to the root of the checked out source code. This | 10 # LLVM_SRC_PATH is the path to the root of the checked out source code. This |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 $(RT_OBJ): runtime.is.built | 209 $(RT_OBJ): runtime.is.built |
| 210 runtime.is.built: $(RT_SRC) | 210 runtime.is.built: $(RT_SRC) |
| 211 @echo ================ Building Subzero runtime ================ | 211 @echo ================ Building Subzero runtime ================ |
| 212 ./pydir/build-runtime.py -v --pnacl-root $(PNACL_TOOLCHAIN_ROOT) | 212 ./pydir/build-runtime.py -v --pnacl-root $(PNACL_TOOLCHAIN_ROOT) |
| 213 | 213 |
| 214 check-lit: $(OBJDIR)/pnacl-sz make_symlink | 214 check-lit: $(OBJDIR)/pnacl-sz make_symlink |
| 215 LLVM_BIN_PATH=$(LLVM_BIN_PATH) \ | 215 LLVM_BIN_PATH=$(LLVM_BIN_PATH) \ |
| 216 BINUTILS_BIN_PATH=$(BINUTILS_BIN_PATH) \ | 216 BINUTILS_BIN_PATH=$(BINUTILS_BIN_PATH) \ |
| 217 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv tests_lit | 217 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv tests_lit |
| 218 | 218 |
| 219 check-unit: $(OBJDIR)/run_unittests | |
| 220 $(OBJDIR)/run_unittests | |
| 221 | |
| 222 ifdef MINIMAL | 219 ifdef MINIMAL |
| 223 check: check-lit check-unit runtime | 220 check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime |
| 224 » @echo "Crosstests ignored, minimal build" | 221 » @echo "Crosstests disabled, minimal build" |
| 225 else | 222 else |
| 226 check: check-lit check-unit runtime | 223 check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime |
| 227 # Do all native/sse2 tests, but only test_vector_ops for native/sse4.1. | 224 # Do all native/sse2 tests, but only test_vector_ops for native/sse4.1. |
| 228 # For (slow) sandboxed tests, limit to Om1/sse4.1. | 225 # For (slow) sandboxed tests, limit to Om1/sse4.1. |
| 229 ./pydir/crosstest_generator.py -v --lit \ | 226 ./pydir/crosstest_generator.py -v --lit \ |
| 230 -i native,sse2 -i native,sse4.1,test_vector_ops \ | 227 -i native,sse2 -i native,sse4.1,test_vector_ops \ |
| 231 -i sandbox,sse4.1,Om1 | 228 -i sandbox,sse4.1,Om1 |
| 232 LLVM_BIN_PATH=$(LLVM_BIN_PATH) \ | 229 LLVM_BIN_PATH=$(LLVM_BIN_PATH) \ |
| 233 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv crosstest/Output | 230 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv crosstest/Output |
| 234 endif | 231 endif |
| 235 | 232 |
| 233 check-unit: $(OBJDIR)/run_unittests |
| 234 $(OBJDIR)/run_unittests |
| 235 |
| 236 check: check-lit check-unit check-xtest |
| 237 |
| 236 FORMAT_BLACKLIST = | 238 FORMAT_BLACKLIST = |
| 237 # Add one of the following lines for each source file to ignore. | 239 # Add one of the following lines for each source file to ignore. |
| 238 FORMAT_BLACKLIST += ! -name IceParseInstsTest.cpp | 240 FORMAT_BLACKLIST += ! -name IceParseInstsTest.cpp |
| 239 format: | 241 format: |
| 240 $(LLVM_BIN_PATH)/clang-format -style=LLVM -i \ | 242 $(LLVM_BIN_PATH)/clang-format -style=LLVM -i \ |
| 241 `find . -regex '.*\.\(c\|h\|cpp\)' $(FORMAT_BLACKLIST)` | 243 `find . -regex '.*\.\(c\|h\|cpp\)' $(FORMAT_BLACKLIST)` |
| 242 | 244 |
| 243 format-diff: | 245 format-diff: |
| 244 git diff -U0 `git merge-base HEAD master` | \ | 246 git diff -U0 `git merge-base HEAD master` | \ |
| 245 PATH=$(LLVM_BIN_PATH):$(PATH) \ | 247 PATH=$(LLVM_BIN_PATH):$(PATH) \ |
| 246 $(LLVM_SRC_PATH)/../clang/tools/clang-format/clang-format-diff.py \ | 248 $(LLVM_SRC_PATH)/../clang/tools/clang-format/clang-format-diff.py \ |
| 247 -p1 -style=LLVM -i | 249 -p1 -style=LLVM -i |
| 248 | 250 |
| 249 bloat: make_symlink | 251 bloat: make_symlink |
| 250 nm -C -S -l pnacl-sz | \ | 252 nm -C -S -l pnacl-sz | \ |
| 251 bloat/bloat.py --nm-output=/dev/stdin syms > build/pnacl-sz.bloat.json | 253 bloat/bloat.py --nm-output=/dev/stdin syms > build/pnacl-sz.bloat.json |
| 252 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html | 254 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html |
| 253 | 255 |
| 254 clean: | 256 clean: |
| 255 rm -rf pnacl-sz *.o $(OBJDIR) build/pnacl-sz.bloat.json | 257 rm -rf pnacl-sz *.o $(OBJDIR) build/pnacl-sz.bloat.json |
| 256 | 258 |
| 257 clean-all: clean | 259 clean-all: clean |
| 258 rm -rf build/ | 260 rm -rf build/ |
| OLD | NEW |