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> 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 # | 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 106 | 106 |
| 107 # TODO: Be more precise than "*.h" here and elsewhere. | 107 # TODO: Be more precise than "*.h" here and elsewhere. |
| 108 $(OBJS): $(OBJDIR)/%.o: src/%.cpp src/*.h src/*.def | 108 $(OBJS): $(OBJDIR)/%.o: src/%.cpp src/*.h src/*.def |
| 109 $(CXX) -c $(CXXFLAGS) $< -o $@ | 109 $(CXX) -c $(CXXFLAGS) $< -o $@ |
| 110 | 110 |
| 111 $(OBJS): | $(OBJDIR) | 111 $(OBJS): | $(OBJDIR) |
| 112 | 112 |
| 113 $(OBJDIR): | 113 $(OBJDIR): |
| 114 @mkdir -p $@ | 114 @mkdir -p $@ |
| 115 | 115 |
| 116 check-lit: llvm2ice | 116 check-lit: llvm2ice make_symlink |
|
Jim Stichnoth
2014/09/27 16:22:22
This was actually broken after the Debug/Release c
| |
| 117 LLVM_BIN_PATH=$(LLVM_BIN_PATH) \ | 117 LLVM_BIN_PATH=$(LLVM_BIN_PATH) \ |
| 118 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv tests_lit | 118 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv tests_lit |
| 119 | 119 |
| 120 check: check-lit | 120 check: check-lit |
| 121 (cd crosstest; ./runtests.sh) | 121 (cd crosstest; ./runtests.sh) |
| 122 | 122 |
| 123 # TODO: Fix the use of wildcards. | 123 # TODO: Fix the use of wildcards. |
| 124 # Assumes clang-format is within $PATH. | 124 # Assumes clang-format is within $PATH. |
| 125 format: | 125 format: |
| 126 clang-format -style=LLVM -i src/*.h src/*.cpp | 126 clang-format -style=LLVM -i src/*.h src/*.cpp |
| 127 | 127 |
| 128 # Assumes clang-format-diff.py is within $PATH, and that the | 128 # Assumes clang-format-diff.py is within $PATH, and that the |
| 129 # clang-format it calls is also within $PATH. This may require adding | 129 # clang-format it calls is also within $PATH. This may require adding |
| 130 # a component to $PATH, or creating symlinks within some existing | 130 # a component to $PATH, or creating symlinks within some existing |
| 131 # $PATH component. Uses the one in /usr/lib/clang-format/ if it | 131 # $PATH component. Uses the one in /usr/lib/clang-format/ if it |
| 132 # exists. | 132 # exists. |
| 133 ifeq (,$(wildcard /usr/lib/clang-format/clang-format-diff.py)) | 133 ifeq (,$(wildcard /usr/lib/clang-format/clang-format-diff.py)) |
| 134 CLANG_FORMAT_DIFF = clang-format-diff.py | 134 CLANG_FORMAT_DIFF = clang-format-diff.py |
| 135 else | 135 else |
| 136 CLANG_FORMAT_DIFF = /usr/lib/clang-format/clang-format-diff.py | 136 CLANG_FORMAT_DIFF = /usr/lib/clang-format/clang-format-diff.py |
| 137 endif | 137 endif |
| 138 format-diff: | 138 format-diff: |
| 139 git diff -U0 `git merge-base HEAD master` | \ | 139 git diff -U0 `git merge-base HEAD master` | \ |
| 140 $(CLANG_FORMAT_DIFF) -p1 -style=LLVM -i | 140 $(CLANG_FORMAT_DIFF) -p1 -style=LLVM -i |
| 141 | 141 |
| 142 clean: | 142 clean: |
| 143 rm -rf llvm2ice *.o build/ | 143 rm -rf llvm2ice *.o build/ |
| OLD | NEW |