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 # | 6 # |
7 | 7 |
8 # LLVM_SRC_PATH is the path to the root of the checked out source code. This | 8 # LLVM_SRC_PATH is the path to the root of the checked out source code. This |
9 # directory should contain the configure script, the include/ and lib/ | 9 # directory should contain the configure script, the include/ and lib/ |
10 # directories of LLVM, Clang in tools/clang/, etc. | 10 # directories of LLVM, Clang in tools/clang/, etc. |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 # clang-format it calls is also within $PATH. This may require adding | 96 # clang-format it calls is also within $PATH. This may require adding |
97 # a component to $PATH, or creating symlinks within some existing | 97 # a component to $PATH, or creating symlinks within some existing |
98 # $PATH component. Uses the one in /usr/lib/clang-format/ if it | 98 # $PATH component. Uses the one in /usr/lib/clang-format/ if it |
99 # exists. | 99 # exists. |
100 ifeq (,$(wildcard /usr/lib/clang-format/clang-format-diff.py)) | 100 ifeq (,$(wildcard /usr/lib/clang-format/clang-format-diff.py)) |
101 CLANG_FORMAT_DIFF = clang-format-diff.py | 101 CLANG_FORMAT_DIFF = clang-format-diff.py |
102 else | 102 else |
103 CLANG_FORMAT_DIFF = /usr/lib/clang-format/clang-format-diff.py | 103 CLANG_FORMAT_DIFF = /usr/lib/clang-format/clang-format-diff.py |
104 endif | 104 endif |
105 format-diff: | 105 format-diff: |
106 » git diff -U0 HEAD^ | \ | 106 » git diff -U0 `git merge-base HEAD master` | \ |
107 $(CLANG_FORMAT_DIFF) -p1 -style=LLVM -i | 107 $(CLANG_FORMAT_DIFF) -p1 -style=LLVM -i |
108 | 108 |
109 clean: | 109 clean: |
110 rm -rf llvm2ice *.o build/ | 110 rm -rf llvm2ice *.o build/ |
OLD | NEW |