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

Side by Side Diff: Makefile

Issue 296823013: Fix g++ -pedantic warnings (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Created 6 years, 7 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/IceGlobalContext.cpp » ('j') | src/IceGlobalContext.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> LLVM_BIN_PATH=<path> ... 5 # make LLVM_SRC_PATH=<path> LLVM_BIN_PATH=<path> ...
6 # 6 #
7 7
8 # LLVM_SRC_PATH is the path to the root of the checked out source code. This 8 # LLVM_SRC_PATH is the path to the root of the checked out source code. This
9 # directory should contain the configure script, the include/ and lib/ 9 # directory should contain the configure script, the include/ and lib/
10 # directories of LLVM, Clang in tools/clang/, etc. 10 # directories of LLVM, Clang in tools/clang/, etc.
(...skipping 11 matching lines...) Expand all
22 $(info Using LLVM_SRC_PATH = $(LLVM_SRC_PATH)) 22 $(info Using LLVM_SRC_PATH = $(LLVM_SRC_PATH))
23 $(info Using LLVM_BIN_PATH = $(LLVM_BIN_PATH)) 23 $(info Using LLVM_BIN_PATH = $(LLVM_BIN_PATH))
24 $(info -----------------------------------------------) 24 $(info -----------------------------------------------)
25 25
26 LLVM_CXXFLAGS := `$(LLVM_BIN_PATH)/llvm-config --cxxflags` 26 LLVM_CXXFLAGS := `$(LLVM_BIN_PATH)/llvm-config --cxxflags`
27 LLVM_LDFLAGS := `$(LLVM_BIN_PATH)/llvm-config --ldflags --libs` 27 LLVM_LDFLAGS := `$(LLVM_BIN_PATH)/llvm-config --ldflags --libs`
28 28
29 # It's recommended that CXX matches the compiler you used to build LLVM itself. 29 # It's recommended that CXX matches the compiler you used to build LLVM itself.
30 OPTLEVEL := -O0 30 OPTLEVEL := -O0
31 CXX := g++ 31 CXX := g++
32 CXXFLAGS := -Wall -Wextra -Werror -fno-rtti -fno-exceptions \ 32 CXXFLAGS := -Wall -Wextra -Wvla -Werror -fno-rtti -fno-exceptions \
33 $(OPTLEVEL) -g $(LLVM_CXXFLAGS) -m32 33 $(OPTLEVEL) -g $(LLVM_CXXFLAGS) -m32
34 LDFLAGS := -m32 34 LDFLAGS := -m32
35 35
36 SRCS= \ 36 SRCS= \
37 IceCfg.cpp \ 37 IceCfg.cpp \
38 IceCfgNode.cpp \ 38 IceCfgNode.cpp \
39 IceGlobalContext.cpp \ 39 IceGlobalContext.cpp \
40 IceInst.cpp \ 40 IceInst.cpp \
41 IceInstX8632.cpp \ 41 IceInstX8632.cpp \
42 IceOperand.cpp \ 42 IceOperand.cpp \
(...skipping 26 matching lines...) Expand all
69 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv tests_lit 69 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv tests_lit
70 (cd crosstest; LLVM_BIN_PATH=$(LLVM_BIN_PATH) ./runtests.sh) 70 (cd crosstest; LLVM_BIN_PATH=$(LLVM_BIN_PATH) ./runtests.sh)
71 71
72 # TODO: Fix the use of wildcards. 72 # TODO: Fix the use of wildcards.
73 format: 73 format:
74 $(LLVM_BIN_PATH)/clang-format -style=LLVM -i \ 74 $(LLVM_BIN_PATH)/clang-format -style=LLVM -i \
75 src/Ice*.h src/Ice*.cpp src/llvm2ice.cpp 75 src/Ice*.h src/Ice*.cpp src/llvm2ice.cpp
76 76
77 clean: 77 clean:
78 rm -rf llvm2ice *.o build/ 78 rm -rf llvm2ice *.o build/
OLDNEW
« no previous file with comments | « no previous file | src/IceGlobalContext.cpp » ('j') | src/IceGlobalContext.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698