| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 SB_LLVM_LDFLAGS := $(LLVM_LIBS_LIST) \ | 155 SB_LLVM_LDFLAGS := $(LLVM_LIBS_LIST) \ |
| 156 -L$(SB_LLVM_PATH)/lib | 156 -L$(SB_LLVM_PATH)/lib |
| 157 | 157 |
| 158 CCACHE := `command -v ccache` | 158 CCACHE := `command -v ccache` |
| 159 CXX := CCACHE_CPP2=yes $(CCACHE) $(CLANG_PATH)/clang++ | 159 CXX := CCACHE_CPP2=yes $(CCACHE) $(CLANG_PATH)/clang++ |
| 160 SB_CXX := CCACHE_CPP2=yes $(CCACHE) $(PNACL_BIN_PATH)/pnacl-clang++ | 160 SB_CXX := CCACHE_CPP2=yes $(CCACHE) $(PNACL_BIN_PATH)/pnacl-clang++ |
| 161 SB_TRANSLATE := $(PNACL_BIN_PATH)/pnacl-translate | 161 SB_TRANSLATE := $(PNACL_BIN_PATH)/pnacl-translate |
| 162 | 162 |
| 163 BASE_CXXFLAGS := -std=gnu++11 -Wall -Wextra -Werror -fno-rtti \ | 163 BASE_CXXFLAGS := -std=gnu++11 -Wall -Wextra -Werror -fno-rtti \ |
| 164 -fno-exceptions $(OPTLEVEL) $(ASSERTIONS) -g -pedantic \ | 164 -fno-exceptions $(OPTLEVEL) $(ASSERTIONS) -g -pedantic \ |
| 165 » -Wno-error=unused-parameter $(CXX_EXTRA) | 165 » $(CXX_EXTRA) |
| 166 | 166 |
| 167 CXXFLAGS := $(LLVM_CXXFLAGS) $(BASE_CXXFLAGS) $(CXX_DEFINES) $(HOST_FLAGS) \ | 167 CXXFLAGS := $(LLVM_CXXFLAGS) $(BASE_CXXFLAGS) $(CXX_DEFINES) $(HOST_FLAGS) \ |
| 168 $(STDLIB_FLAGS) | 168 $(STDLIB_FLAGS) |
| 169 SB_CXXFLAGS := $(SB_LLVM_CXXFLAGS) $(BASE_CXXFLAGS) $(SB_CXX_DEFINES) | 169 SB_CXXFLAGS := $(SB_LLVM_CXXFLAGS) $(BASE_CXXFLAGS) $(SB_CXX_DEFINES) |
| 170 | 170 |
| 171 LDFLAGS := $(HOST_FLAGS) -L$(LIBCXX_INSTALL_PATH)/lib -Wl,--gc-sections \ | 171 LDFLAGS := $(HOST_FLAGS) -L$(LIBCXX_INSTALL_PATH)/lib -Wl,--gc-sections \ |
| 172 $(LD_EXTRA) $(STDLIB_FLAGS) | 172 $(LD_EXTRA) $(STDLIB_FLAGS) |
| 173 # Not specifying -Wl,--gc-sections but instead doing bitcode linking GC w/ LTO. | 173 # Not specifying -Wl,--gc-sections but instead doing bitcode linking GC w/ LTO. |
| 174 SB_LDFLAGS := $(LINKOPTLEVEL) $(LD_EXTRA) | 174 SB_LDFLAGS := $(LINKOPTLEVEL) $(LD_EXTRA) |
| 175 | 175 |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 bloat: make_symlink | 354 bloat: make_symlink |
| 355 nm -C -S -l pnacl-sz | \ | 355 nm -C -S -l pnacl-sz | \ |
| 356 bloat/bloat.py --nm-output=/dev/stdin syms > build/pnacl-sz.bloat.json | 356 bloat/bloat.py --nm-output=/dev/stdin syms > build/pnacl-sz.bloat.json |
| 357 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html | 357 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html |
| 358 | 358 |
| 359 clean: | 359 clean: |
| 360 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json | 360 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json |
| 361 | 361 |
| 362 clean-all: clean | 362 clean-all: clean |
| 363 rm -rf build/ | 363 rm -rf build/ |
| OLD | NEW |