| 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 23 matching lines...) Expand all Loading... |
| 34 $(info -----------------------------------------------) | 34 $(info -----------------------------------------------) |
| 35 | 35 |
| 36 LLVM_CXXFLAGS := `$(LLVM_BIN_PATH)/llvm-config --cxxflags` | 36 LLVM_CXXFLAGS := `$(LLVM_BIN_PATH)/llvm-config --cxxflags` |
| 37 LLVM_LDFLAGS := `$(LLVM_BIN_PATH)/llvm-config --libs` \ | 37 LLVM_LDFLAGS := `$(LLVM_BIN_PATH)/llvm-config --libs` \ |
| 38 `$(LLVM_BIN_PATH)/llvm-config --ldflags` | 38 `$(LLVM_BIN_PATH)/llvm-config --ldflags` |
| 39 | 39 |
| 40 # It's recommended that CXX matches the compiler you used to build LLVM itself. | 40 # It's recommended that CXX matches the compiler you used to build LLVM itself. |
| 41 OPTLEVEL := -O0 | 41 OPTLEVEL := -O0 |
| 42 CXX := g++ | 42 CXX := g++ |
| 43 | 43 |
| 44 CXXFLAGS := -Wall -Wextra -Werror -fno-rtti -fno-exceptions \ | 44 CXXFLAGS := $(LLVM_CXXFLAGS) -Wall -Wextra -Werror -fno-rtti \ |
| 45 » $(OPTLEVEL) -g $(LLVM_CXXFLAGS) $(HOST_FLAGS) \ | 45 » -fno-exceptions $(OPTLEVEL) -g $(HOST_FLAGS) \ |
| 46 -Wno-error=unused-parameter | 46 -Wno-error=unused-parameter |
| 47 LDFLAGS := $(HOST_FLAGS) | 47 LDFLAGS := $(HOST_FLAGS) |
| 48 | 48 |
| 49 SRCS= \ | 49 SRCS= \ |
| 50 IceCfg.cpp \ | 50 IceCfg.cpp \ |
| 51 IceCfgNode.cpp \ | 51 IceCfgNode.cpp \ |
| 52 IceConverter.cpp \ | 52 IceConverter.cpp \ |
| 53 IceGlobalContext.cpp \ | 53 IceGlobalContext.cpp \ |
| 54 IceInst.cpp \ | 54 IceInst.cpp \ |
| 55 IceInstX8632.cpp \ | 55 IceInstX8632.cpp \ |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 CLANG_FORMAT_DIFF = clang-format-diff.py | 106 CLANG_FORMAT_DIFF = clang-format-diff.py |
| 107 else | 107 else |
| 108 CLANG_FORMAT_DIFF = /usr/lib/clang-format/clang-format-diff.py | 108 CLANG_FORMAT_DIFF = /usr/lib/clang-format/clang-format-diff.py |
| 109 endif | 109 endif |
| 110 format-diff: | 110 format-diff: |
| 111 git diff -U0 `git merge-base HEAD master` | \ | 111 git diff -U0 `git merge-base HEAD master` | \ |
| 112 $(CLANG_FORMAT_DIFF) -p1 -style=LLVM -i | 112 $(CLANG_FORMAT_DIFF) -p1 -style=LLVM -i |
| 113 | 113 |
| 114 clean: | 114 clean: |
| 115 rm -rf llvm2ice *.o build/ | 115 rm -rf llvm2ice *.o build/ |
| OLD | NEW |