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> LIBCXX_INSTALL_PATH=<path> CLANG_PATH=<path> \ | 5 # make LLVM_SRC_PATH=<path> LIBCXX_INSTALL_PATH=<path> CLANG_PATH=<path> \ |
6 # PNACL_BIN_PATH=<path> ... | 6 # PNACL_BIN_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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 LINKOPTLEVEL = -O2 | 77 LINKOPTLEVEL = -O2 |
78 endif | 78 endif |
79 | 79 |
80 # The list of CXX defines that are dependent on build parameters. | 80 # The list of CXX defines that are dependent on build parameters. |
81 BASE_CXX_DEFINES = | 81 BASE_CXX_DEFINES = |
82 CXX_EXTRA = | 82 CXX_EXTRA = |
83 LD_EXTRA = | 83 LD_EXTRA = |
84 | 84 |
85 ifdef MINIMAL | 85 ifdef MINIMAL |
86 NOASSERT = 1 | 86 NOASSERT = 1 |
| 87 NODUMP = 1 |
87 OBJDIR := $(OBJDIR)+Min | 88 OBJDIR := $(OBJDIR)+Min |
88 BASE_CXX_DEFINES += -DALLOW_DUMP=0 -DALLOW_LLVM_CL=0 -DALLOW_LLVM_IR=0 \ | 89 BASE_CXX_DEFINES += -DALLOW_LLVM_CL=0 -DALLOW_LLVM_IR=0 \ |
89 -DALLOW_LLVM_IR_AS_INPUT=0 -DALLOW_MINIMAL_BUILD=1 | 90 -DALLOW_LLVM_IR_AS_INPUT=0 -DALLOW_TIMERS=0 -DALLOW_MINIMAL_BUILD=1 |
90 else | 91 else |
91 BASE_CXX_DEFINES += -DALLOW_DUMP=1 -DALLOW_LLVM_CL=1 -DALLOW_LLVM_IR=1 \ | 92 BASE_CXX_DEFINES += -DALLOW_LLVM_CL=1 -DALLOW_LLVM_IR=1 \ |
92 -DALLOW_LLVM_IR_AS_INPUT=1 -DALLOW_MINIMAL_BUILD=0 | 93 -DALLOW_LLVM_IR_AS_INPUT=1 -DALLOW_TIMERS=1 -DALLOW_MINIMAL_BUILD=0 |
| 94 endif |
| 95 |
| 96 ifdef NODUMP |
| 97 OBJDIR := $(OBJDIR)+NoDump |
| 98 BASE_CXX_DEFINES += -DALLOW_DUMP=0 |
| 99 else |
| 100 BASE_CXX_DEFINES += -DALLOW_DUMP=1 |
93 endif | 101 endif |
94 | 102 |
95 CXX_DEFINES := $(BASE_CXX_DEFINES) -DPNACL_BROWSER_TRANSLATOR=0 | 103 CXX_DEFINES := $(BASE_CXX_DEFINES) -DPNACL_BROWSER_TRANSLATOR=0 |
96 | 104 |
97 ifdef NOASSERT | 105 ifdef NOASSERT |
98 ASSERTIONS = -DNDEBUG | 106 ASSERTIONS = -DNDEBUG |
99 else | 107 else |
100 ASSERTIONS = | 108 ASSERTIONS = |
101 OBJDIR := $(OBJDIR)+Asserts | 109 OBJDIR := $(OBJDIR)+Asserts |
102 endif | 110 endif |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 | 620 |
613 help-check-xtest: | 621 help-check-xtest: |
614 @cat Makefile.standalone-help/check-xtest.txt | 622 @cat Makefile.standalone-help/check-xtest.txt |
615 | 623 |
616 clean: | 624 clean: |
617 rm -rf pnacl-sz *.o $(foreach nexe,$(NEXES),$(notdir $(nexe))) \ | 625 rm -rf pnacl-sz *.o $(foreach nexe,$(NEXES),$(notdir $(nexe))) \ |
618 $(OBJDIR) $(SB_OBJDIR) $(SBB_OBJDIR) build/*.bloat.json | 626 $(OBJDIR) $(SB_OBJDIR) $(SBB_OBJDIR) build/*.bloat.json |
619 | 627 |
620 clean-all: clean | 628 clean-all: clean |
621 rm -rf build/ crosstest/Output/ | 629 rm -rf build/ crosstest/Output/ |
OLD | NEW |