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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 endif | 333 endif |
334 | 334 |
335 check-unit: $(OBJDIR)/run_unittests | 335 check-unit: $(OBJDIR)/run_unittests |
336 $(OBJDIR)/run_unittests | 336 $(OBJDIR)/run_unittests |
337 | 337 |
338 check: check-lit check-unit check-xtest | 338 check: check-lit check-unit check-xtest |
339 | 339 |
340 FORMAT_BLACKLIST = | 340 FORMAT_BLACKLIST = |
341 # Add one of the following lines for each source file to ignore. | 341 # Add one of the following lines for each source file to ignore. |
342 FORMAT_BLACKLIST += ! -name IceParseInstsTest.cpp | 342 FORMAT_BLACKLIST += ! -name IceParseInstsTest.cpp |
| 343 FORMAT_BLACKLIST += ! -name IceParseTypesTest.cpp |
343 format: | 344 format: |
344 $(CLANG_FORMAT_PATH)/clang-format -style=LLVM -i \ | 345 $(CLANG_FORMAT_PATH)/clang-format -style=LLVM -i \ |
345 `find . -regex '.*\.\(c\|h\|cpp\)' $(FORMAT_BLACKLIST)` | 346 `find . -regex '.*\.\(c\|h\|cpp\)' $(FORMAT_BLACKLIST)` |
346 | 347 |
347 format-diff: | 348 format-diff: |
348 git diff -U0 `git merge-base HEAD master` | \ | 349 git diff -U0 `git merge-base HEAD master` | \ |
349 PATH=$(PNACL_BIN_PATH):$(PATH) \ | 350 PATH=$(PNACL_BIN_PATH):$(PATH) \ |
350 $(LLVM_SRC_PATH)/../clang/tools/clang-format/clang-format-diff.py \ | 351 $(LLVM_SRC_PATH)/../clang/tools/clang-format/clang-format-diff.py \ |
351 -p1 -style=LLVM -i | 352 -p1 -style=LLVM -i |
352 | 353 |
353 bloat: make_symlink | 354 bloat: make_symlink |
354 nm -C -S -l pnacl-sz | \ | 355 nm -C -S -l pnacl-sz | \ |
355 bloat/bloat.py --nm-output=/dev/stdin syms > build/pnacl-sz.bloat.json | 356 bloat/bloat.py --nm-output=/dev/stdin syms > build/pnacl-sz.bloat.json |
356 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html | 357 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html |
357 | 358 |
358 clean: | 359 clean: |
359 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json | 360 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json |
360 | 361 |
361 clean-all: clean | 362 clean-all: clean |
362 rm -rf build/ | 363 rm -rf build/ |
OLD | NEW |