Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(470)

Side by Side Diff: Makefile.standalone

Issue 1217433002: Subzero: Enable errors for unused parameters. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/IceClFlags.cpp » ('j') | unittest/IceParseInstsTest.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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/
OLDNEW
« no previous file with comments | « no previous file | src/IceClFlags.cpp » ('j') | unittest/IceParseInstsTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698