| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 OPTLEVEL = -O0 | 42 OPTLEVEL = -O0 |
| 43 else | 43 else |
| 44 OBJDIR = build/Release | 44 OBJDIR = build/Release |
| 45 OPTLEVEL = -O2 | 45 OPTLEVEL = -O2 |
| 46 endif | 46 endif |
| 47 | 47 |
| 48 # The list of CXX defines that are dependent on build parameters. | 48 # The list of CXX defines that are dependent on build parameters. |
| 49 CXX_DEFINES = | 49 CXX_DEFINES = |
| 50 | 50 |
| 51 ifdef MINIMAL | 51 ifdef MINIMAL |
| 52 NOASSERT = 1 |
| 52 OBJDIR := $(OBJDIR)+Min | 53 OBJDIR := $(OBJDIR)+Min |
| 53 CXX_DEFINES += -DALLOW_DUMP=0 -DALLOW_LLVM_CL=0 -DALLOW_LLVM_IR=0 \ | 54 CXX_DEFINES += -DALLOW_DUMP=0 -DALLOW_LLVM_CL=0 -DALLOW_LLVM_IR=0 \ |
| 54 -DALLOW_LLVM_IR_AS_INPUT=0 -DALLOW_DISABLE_IR_GEN=0 | 55 -DALLOW_LLVM_IR_AS_INPUT=0 -DALLOW_DISABLE_IR_GEN=0 |
| 55 else | 56 else |
| 56 CXX_DEFINES += -DALLOW_DUMP=1 -DALLOW_LLVM_CL=1 -DALLOW_LLVM_IR=1 \ | 57 CXX_DEFINES += -DALLOW_DUMP=1 -DALLOW_LLVM_CL=1 -DALLOW_LLVM_IR=1 \ |
| 57 -DALLOW_LLVM_IR_AS_INPUT=1 -DALLOW_DISABLE_IR_GEN=1 | 58 -DALLOW_LLVM_IR_AS_INPUT=1 -DALLOW_DISABLE_IR_GEN=1 |
| 58 endif | 59 endif |
| 59 | 60 |
| 60 ifdef NOASSERT | 61 ifdef NOASSERT |
| 61 ASSERTIONS = -DNDEBUG | 62 ASSERTIONS = -DNDEBUG |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 endif | 202 endif |
| 202 format-diff: | 203 format-diff: |
| 203 git diff -U0 `git merge-base HEAD master` | \ | 204 git diff -U0 `git merge-base HEAD master` | \ |
| 204 $(CLANG_FORMAT_DIFF) -p1 -style=LLVM -i | 205 $(CLANG_FORMAT_DIFF) -p1 -style=LLVM -i |
| 205 | 206 |
| 206 clean: | 207 clean: |
| 207 rm -rf llvm2ice *.o $(OBJDIR) | 208 rm -rf llvm2ice *.o $(OBJDIR) |
| 208 | 209 |
| 209 clean-all: clean | 210 clean-all: clean |
| 210 rm -rf build/ | 211 rm -rf build/ |
| OLD | NEW |