| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 LLVM_CXXFLAGS := `$(LLVM_BIN_PATH)/llvm-config --cxxflags` | 91 LLVM_CXXFLAGS := `$(LLVM_BIN_PATH)/llvm-config --cxxflags` |
| 92 LLVM_LDFLAGS := `$(LLVM_BIN_PATH)/llvm-config --libs` \ | 92 LLVM_LDFLAGS := `$(LLVM_BIN_PATH)/llvm-config --libs` \ |
| 93 `$(LLVM_BIN_PATH)/llvm-config --ldflags` \ | 93 `$(LLVM_BIN_PATH)/llvm-config --ldflags` \ |
| 94 `$(LLVM_BIN_PATH)/llvm-config --system-libs` | 94 `$(LLVM_BIN_PATH)/llvm-config --system-libs` |
| 95 | 95 |
| 96 # It's recommended that CXX matches the compiler you used to build LLVM itself. | 96 # It's recommended that CXX matches the compiler you used to build LLVM itself. |
| 97 CCACHE := `command -v ccache` | 97 CCACHE := `command -v ccache` |
| 98 CXX := CCACHE_CPP2=yes $(CCACHE) $(CLANG_PATH)/clang++ | 98 CXX := CCACHE_CPP2=yes $(CCACHE) $(CLANG_PATH)/clang++ |
| 99 | 99 |
| 100 CXXFLAGS := $(LLVM_CXXFLAGS) -std=c++11 -Wall -Wextra -Werror -fno-rtti \ | 100 CXXFLAGS := $(LLVM_CXXFLAGS) -std=gnu++11 -Wall -Wextra -Werror -fno-rtti \ |
| 101 -fno-exceptions $(OPTLEVEL) $(ASSERTIONS) $(CXX_DEFINES) -g \ | 101 -fno-exceptions $(OPTLEVEL) $(ASSERTIONS) $(CXX_DEFINES) -g \ |
| 102 $(HOST_FLAGS) -pedantic -Wno-error=unused-parameter \ | 102 $(HOST_FLAGS) -pedantic -Wno-error=unused-parameter \ |
| 103 -I$(LIBCXX_INSTALL_PATH)/include/c++/v1 $(CXX_EXTRA) | 103 -I$(LIBCXX_INSTALL_PATH)/include/c++/v1 $(CXX_EXTRA) |
| 104 LDFLAGS := $(HOST_FLAGS) -L$(LIBCXX_INSTALL_PATH)/lib -Wl,--gc-sections \ | 104 LDFLAGS := $(HOST_FLAGS) -L$(LIBCXX_INSTALL_PATH)/lib -Wl,--gc-sections \ |
| 105 $(LD_EXTRA) | 105 $(LD_EXTRA) |
| 106 | 106 |
| 107 SRCS = \ | 107 SRCS = \ |
| 108 assembler.cpp \ | 108 assembler.cpp \ |
| 109 assembler_ia32.cpp \ | 109 assembler_ia32.cpp \ |
| 110 IceCfg.cpp \ | 110 IceCfg.cpp \ |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 bloat: make_symlink | 234 bloat: make_symlink |
| 235 nm -C -S -l pnacl-sz | \ | 235 nm -C -S -l pnacl-sz | \ |
| 236 bloat/bloat.py --nm-output=/dev/stdin syms > build/pnacl-sz.bloat.json | 236 bloat/bloat.py --nm-output=/dev/stdin syms > build/pnacl-sz.bloat.json |
| 237 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html | 237 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html |
| 238 | 238 |
| 239 clean: | 239 clean: |
| 240 rm -rf pnacl-sz *.o $(OBJDIR) build/pnacl-sz.bloat.json | 240 rm -rf pnacl-sz *.o $(OBJDIR) build/pnacl-sz.bloat.json |
| 241 | 241 |
| 242 clean-all: clean | 242 clean-all: clean |
| 243 rm -rf build/ | 243 rm -rf build/ |
| OLD | NEW |