| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 LLVM_LDFLAGS := `$(LLVM_BIN_PATH)/llvm-config --libs` \ | 85 LLVM_LDFLAGS := `$(LLVM_BIN_PATH)/llvm-config --libs` \ |
| 86 `$(LLVM_BIN_PATH)/llvm-config --ldflags` \ | 86 `$(LLVM_BIN_PATH)/llvm-config --ldflags` \ |
| 87 `$(LLVM_BIN_PATH)/llvm-config --system-libs` | 87 `$(LLVM_BIN_PATH)/llvm-config --system-libs` |
| 88 | 88 |
| 89 # It's recommended that CXX matches the compiler you used to build LLVM itself. | 89 # It's recommended that CXX matches the compiler you used to build LLVM itself. |
| 90 CCACHE := `command -v ccache` | 90 CCACHE := `command -v ccache` |
| 91 CXX := CCACHE_CPP2=yes $(CCACHE) $(CLANG_PATH)/clang++ | 91 CXX := CCACHE_CPP2=yes $(CCACHE) $(CLANG_PATH)/clang++ |
| 92 | 92 |
| 93 CXXFLAGS := $(LLVM_CXXFLAGS) -std=c++11 -Wall -Wextra -Werror -fno-rtti \ | 93 CXXFLAGS := $(LLVM_CXXFLAGS) -std=c++11 -Wall -Wextra -Werror -fno-rtti \ |
| 94 -fno-exceptions $(OPTLEVEL) $(ASSERTIONS) $(CXX_DEFINES) -g \ | 94 -fno-exceptions $(OPTLEVEL) $(ASSERTIONS) $(CXX_DEFINES) -g \ |
| 95 » $(HOST_FLAGS) -Wno-error=unused-parameter \ | 95 » $(HOST_FLAGS) -pedantic -Wno-error=unused-parameter \ |
| 96 -I$(LIBCXX_INSTALL_PATH)/include/c++/v1 $(CXX_EXTRA) | 96 -I$(LIBCXX_INSTALL_PATH)/include/c++/v1 $(CXX_EXTRA) |
| 97 LDFLAGS := $(HOST_FLAGS) -L$(LIBCXX_INSTALL_PATH)/lib -Wl,--gc-sections \ | 97 LDFLAGS := $(HOST_FLAGS) -L$(LIBCXX_INSTALL_PATH)/lib -Wl,--gc-sections \ |
| 98 $(LD_EXTRA) | 98 $(LD_EXTRA) |
| 99 | 99 |
| 100 SRCS = \ | 100 SRCS = \ |
| 101 assembler.cpp \ | 101 assembler.cpp \ |
| 102 assembler_ia32.cpp \ | 102 assembler_ia32.cpp \ |
| 103 IceCfg.cpp \ | 103 IceCfg.cpp \ |
| 104 IceCfgNode.cpp \ | 104 IceCfgNode.cpp \ |
| 105 IceELFObjectWriter.cpp \ | 105 IceELFObjectWriter.cpp \ |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 git diff -U0 `git merge-base HEAD master` | \ | 208 git diff -U0 `git merge-base HEAD master` | \ |
| 209 PATH=$(LLVM_BIN_PATH):$(PATH) \ | 209 PATH=$(LLVM_BIN_PATH):$(PATH) \ |
| 210 $(LLVM_SRC_PATH)/../clang/tools/clang-format/clang-format-diff.py \ | 210 $(LLVM_SRC_PATH)/../clang/tools/clang-format/clang-format-diff.py \ |
| 211 -p1 -style=LLVM -i | 211 -p1 -style=LLVM -i |
| 212 | 212 |
| 213 clean: | 213 clean: |
| 214 rm -rf llvm2ice *.o $(OBJDIR) | 214 rm -rf llvm2ice *.o $(OBJDIR) |
| 215 | 215 |
| 216 clean-all: clean | 216 clean-all: clean |
| 217 rm -rf build/ | 217 rm -rf build/ |
| OLD | NEW |