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

Side by Side Diff: Makefile.standalone

Issue 689433002: Remove IceConverter when LLVM IR is not allowed. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Remove using conditional preprocessor directives. Created 6 years, 1 month 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 | pydir/crosstest.py » ('j') | src/llvm2ice.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 # 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 # It's recommended that CXX matches the compiler you used to build LLVM itself. 79 # It's recommended that CXX matches the compiler you used to build LLVM itself.
80 CCACHE := `command -v ccache` 80 CCACHE := `command -v ccache`
81 CXX := CCACHE_CPP2=yes $(CCACHE) $(CLANG_PATH)/clang++ 81 CXX := CCACHE_CPP2=yes $(CCACHE) $(CLANG_PATH)/clang++
82 82
83 CXXFLAGS := $(LLVM_CXXFLAGS) -std=c++11 -Wall -Wextra -Werror -fno-rtti \ 83 CXXFLAGS := $(LLVM_CXXFLAGS) -std=c++11 -Wall -Wextra -Werror -fno-rtti \
84 -fno-exceptions $(OPTLEVEL) $(ASSERTIONS) $(CXX_DEFINES) -g \ 84 -fno-exceptions $(OPTLEVEL) $(ASSERTIONS) $(CXX_DEFINES) -g \
85 $(HOST_FLAGS) -Wno-error=unused-parameter \ 85 $(HOST_FLAGS) -Wno-error=unused-parameter \
86 -I$(LIBCXX_INSTALL_PATH)/include/c++/v1 86 -I$(LIBCXX_INSTALL_PATH)/include/c++/v1
87 LDFLAGS := $(HOST_FLAGS) -L$(LIBCXX_INSTALL_PATH)/lib 87 LDFLAGS := $(HOST_FLAGS) -L$(LIBCXX_INSTALL_PATH)/lib
88 88
89 SRCS= \ 89 SRCS = \
90 assembler.cpp \ 90 assembler.cpp \
91 assembler_ia32.cpp \ 91 assembler_ia32.cpp \
92 IceCfg.cpp \ 92 IceCfg.cpp \
93 IceCfgNode.cpp \ 93 IceCfgNode.cpp \
94 IceConverter.cpp \
95 IceGlobalContext.cpp \ 94 IceGlobalContext.cpp \
96 IceGlobalInits.cpp \ 95 IceGlobalInits.cpp \
97 IceInst.cpp \ 96 IceInst.cpp \
98 IceInstX8632.cpp \ 97 IceInstX8632.cpp \
99 IceIntrinsics.cpp \ 98 IceIntrinsics.cpp \
100 IceLiveness.cpp \ 99 IceLiveness.cpp \
101 IceMemoryRegion.cpp \ 100 IceMemoryRegion.cpp \
102 IceOperand.cpp \ 101 IceOperand.cpp \
103 IceRegAlloc.cpp \ 102 IceRegAlloc.cpp \
104 IceRNG.cpp \ 103 IceRNG.cpp \
105 IceTargetLowering.cpp \ 104 IceTargetLowering.cpp \
106 IceTargetLoweringX8632.cpp \ 105 IceTargetLoweringX8632.cpp \
107 IceTimerTree.cpp \ 106 IceTimerTree.cpp \
108 IceTranslator.cpp \ 107 IceTranslator.cpp \
109 IceTypeConverter.cpp \ 108 IceTypeConverter.cpp \
110 IceTypes.cpp \ 109 IceTypes.cpp \
111 llvm2ice.cpp \ 110 llvm2ice.cpp \
112 PNaClTranslator.cpp 111 PNaClTranslator.cpp
113 112
113 ifndef MINIMAL
114 SRCS += IceConverter.cpp
115 endif
116
114 OBJS=$(patsubst %.cpp, $(OBJDIR)/%.o, $(SRCS)) 117 OBJS=$(patsubst %.cpp, $(OBJDIR)/%.o, $(SRCS))
115 118
116 # Keep all the first target so it's the default. 119 # Keep all the first target so it's the default.
117 all: $(OBJDIR)/llvm2ice make_symlink 120 all: $(OBJDIR)/llvm2ice make_symlink
118 121
119 make_symlink: $(OBJDIR)/llvm2ice $(OBJDIR)/llvm2ice.build_atts 122 make_symlink: $(OBJDIR)/llvm2ice $(OBJDIR)/llvm2ice.build_atts
120 rm -rf llvm2ice llvm2ice.build_atts 123 rm -rf llvm2ice llvm2ice.build_atts
121 ln -s $(OBJDIR)/llvm2ice 124 ln -s $(OBJDIR)/llvm2ice
122 ln -s $(OBJDIR)/llvm2ice.build_atts 125 ln -s $(OBJDIR)/llvm2ice.build_atts
123 126
(...skipping 12 matching lines...) Expand all
136 139
137 $(OBJS): | $(OBJDIR) 140 $(OBJS): | $(OBJDIR)
138 141
139 $(OBJDIR): 142 $(OBJDIR):
140 @mkdir -p $@ 143 @mkdir -p $@
141 144
142 check-lit: llvm2ice make_symlink 145 check-lit: llvm2ice make_symlink
143 LLVM_BIN_PATH=$(LLVM_BIN_PATH) \ 146 LLVM_BIN_PATH=$(LLVM_BIN_PATH) \
144 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv tests_lit 147 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv tests_lit
145 148
149 ifdef MINIMAL
150 check: check-lit
151 @echo "Crosstests ignored, minimal build"
152 else
146 check: check-lit 153 check: check-lit
147 (cd crosstest; ./runtests.sh) 154 (cd crosstest; ./runtests.sh)
155 endif
148 156
149 # TODO: Fix the use of wildcards. 157 # TODO: Fix the use of wildcards.
150 # Assumes clang-format is within $PATH. 158 # Assumes clang-format is within $PATH.
151 format: 159 format:
152 clang-format -style=LLVM -i src/*.h src/*.cpp 160 clang-format -style=LLVM -i src/*.h src/*.cpp
153 161
154 # Assumes clang-format-diff.py is within $PATH, and that the 162 # Assumes clang-format-diff.py is within $PATH, and that the
155 # clang-format it calls is also within $PATH. This may require adding 163 # clang-format it calls is also within $PATH. This may require adding
156 # a component to $PATH, or creating symlinks within some existing 164 # a component to $PATH, or creating symlinks within some existing
157 # $PATH component. Uses the one in /usr/lib/clang-format/ if it 165 # $PATH component. Uses the one in /usr/lib/clang-format/ if it
158 # exists. 166 # exists.
159 ifeq (,$(wildcard /usr/lib/clang-format/clang-format-diff.py)) 167 ifeq (,$(wildcard /usr/lib/clang-format/clang-format-diff.py))
160 CLANG_FORMAT_DIFF = clang-format-diff.py 168 CLANG_FORMAT_DIFF = clang-format-diff.py
161 else 169 else
162 CLANG_FORMAT_DIFF = /usr/lib/clang-format/clang-format-diff.py 170 CLANG_FORMAT_DIFF = /usr/lib/clang-format/clang-format-diff.py
163 endif 171 endif
164 format-diff: 172 format-diff:
165 git diff -U0 `git merge-base HEAD master` | \ 173 git diff -U0 `git merge-base HEAD master` | \
166 $(CLANG_FORMAT_DIFF) -p1 -style=LLVM -i 174 $(CLANG_FORMAT_DIFF) -p1 -style=LLVM -i
167 175
168 clean: 176 clean:
169 rm -rf llvm2ice llvm2ice.build_atts *.o $(OBJDIR) 177 rm -rf llvm2ice llvm2ice.build_atts *.o $(OBJDIR)
170 178
171 clean-all: clean 179 clean-all: clean
172 rm -rf build/ 180 rm -rf build/
OLDNEW
« no previous file with comments | « no previous file | pydir/crosstest.py » ('j') | src/llvm2ice.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698