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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 OBJDIR := $(OBJDIR)+Min | 52 OBJDIR := $(OBJDIR)+Min |
53 CXX_DEFINES += -DALLOW_TEXT_ASM=0 -DALLOW_DUMP=0 -DALLOW_LLVM_CL=0 \ | 53 CXX_DEFINES += -DALLOW_DUMP=0 -DALLOW_LLVM_CL=0 -DALLOW_LLVM_IR=0 \ |
54 -DALLOW_LLVM_IR=0 -DALLOW_LLVM_IR_AS_INPUT=0 \ | 54 » -DALLOW_LLVM_IR_AS_INPUT=0 -DALLOW_DISABLE_IR_GEN=0 |
55 » » -DALLOW_DISABLE_IR_GEN=0 | |
56 else | 55 else |
57 CXX_DEFINES += -DALLOW_TEXT_ASM=1 -DALLOW_DUMP=1 -DALLOW_LLVM_CL=1 \ | 56 CXX_DEFINES += -DALLOW_DUMP=1 -DALLOW_LLVM_CL=1 -DALLOW_LLVM_IR=1 \ |
58 -DALLOW_LLVM_IR=1 -DALLOW_LLVM_IR_AS_INPUT=1 \ | 57 » -DALLOW_LLVM_IR_AS_INPUT=1 -DALLOW_DISABLE_IR_GEN=1 |
59 » » -DALLOW_DISABLE_IR_GEN=1 | |
60 endif | 58 endif |
61 | 59 |
62 ifdef NOASSERT | 60 ifdef NOASSERT |
63 ASSERTIONS = -DNDEBUG | 61 ASSERTIONS = -DNDEBUG |
64 else | 62 else |
65 ASSERTIONS = | 63 ASSERTIONS = |
66 OBJDIR := $(OBJDIR)+Asserts | 64 OBJDIR := $(OBJDIR)+Asserts |
67 endif | 65 endif |
68 | 66 |
69 $(info -----------------------------------------------) | 67 $(info -----------------------------------------------) |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 endif | 174 endif |
177 format-diff: | 175 format-diff: |
178 git diff -U0 `git merge-base HEAD master` | \ | 176 git diff -U0 `git merge-base HEAD master` | \ |
179 $(CLANG_FORMAT_DIFF) -p1 -style=LLVM -i | 177 $(CLANG_FORMAT_DIFF) -p1 -style=LLVM -i |
180 | 178 |
181 clean: | 179 clean: |
182 rm -rf llvm2ice *.o $(OBJDIR) | 180 rm -rf llvm2ice *.o $(OBJDIR) |
183 | 181 |
184 clean-all: clean | 182 clean-all: clean |
185 rm -rf build/ | 183 rm -rf build/ |
OLD | NEW |