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

Side by Side Diff: Makefile.standalone

Issue 1221643012: Subzero: Add -Wshadow to the build. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Change the previous underscore naming style 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/IceAPInt.h » ('j') | src/IceInst.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 » $(CXX_EXTRA) 165 » -Wshadow $(CXX_EXTRA)
Karl 2015/07/07 17:00:40 Does '-Wshadow' need to be added to Makefile for t
Jim Stichnoth 2015/07/13 19:33:36 I meant this only for the standalone build. I don
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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 358
359 docs: 359 docs:
360 doxygen Doxyfile 360 doxygen Doxyfile
361 @echo See file://`pwd`/docs/html/index.html 361 @echo See file://`pwd`/docs/html/index.html
362 362
363 clean: 363 clean:
364 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json 364 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json
365 365
366 clean-all: clean 366 clean-all: clean
367 rm -rf build/ docs/ 367 rm -rf build/ docs/
OLDNEW
« no previous file with comments | « no previous file | src/IceAPInt.h » ('j') | src/IceInst.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698