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

Side by Side Diff: Makefile.standalone

Issue 1215463014: Modify how textual bitcode is injected into pnacl-sz. (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
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 OBJDIR := $(OBJDIR)+Min 79 OBJDIR := $(OBJDIR)+Min
80 BASE_CXX_DEFINES += -DALLOW_DUMP=0 -DALLOW_LLVM_CL=0 -DALLOW_LLVM_IR=0 \ 80 BASE_CXX_DEFINES += -DALLOW_DUMP=0 -DALLOW_LLVM_CL=0 -DALLOW_LLVM_IR=0 \
81 -DALLOW_LLVM_IR_AS_INPUT=0 -DALLOW_DISABLE_IR_GEN=0 \ 81 -DALLOW_LLVM_IR_AS_INPUT=0 -DALLOW_DISABLE_IR_GEN=0 \
82 -DALLOW_MINIMAL_BUILD=1 82 -DALLOW_MINIMAL_BUILD=1
83 else 83 else
84 BASE_CXX_DEFINES += -DALLOW_DUMP=1 -DALLOW_LLVM_CL=1 -DALLOW_LLVM_IR=1 \ 84 BASE_CXX_DEFINES += -DALLOW_DUMP=1 -DALLOW_LLVM_CL=1 -DALLOW_LLVM_IR=1 \
85 -DALLOW_LLVM_IR_AS_INPUT=1 -DALLOW_DISABLE_IR_GEN=1 \ 85 -DALLOW_LLVM_IR_AS_INPUT=1 -DALLOW_DISABLE_IR_GEN=1 \
86 -DALLOW_MINIMAL_BUILD=0 86 -DALLOW_MINIMAL_BUILD=0
87 endif 87 endif
88 88
89 ifdef TEXTUAL_BITCODE 89 ifdef TEXTUAL_BITCODE
Karl 2015/07/21 21:07:01 Removed this. No longer a build flag (its now a CL
90 BASE_CXX_DEFINES += -DINPUT_IS_TEXTUAL_BITCODE=1 90 BASE_CXX_DEFINES += -DACCEPT_TEXTUAL_PNACL_BITCODE=1
91 OBJDIR := $(OBJDIR)+Tbc 91 OBJDIR := $(OBJDIR)+Tbc
92 else 92 else
93 BASE_CXX_DEFINES += -DINPUT_IS_TEXTUAL_BITCODE=0 93 BASE_CXX_DEFINES += -DACCEPT_TEXTUAL_PNACL_BITCODE=0
94 endif 94 endif
95 95
96 SB_CXX_DEFINES := $(BASE_CXX_DEFINES) -DPNACL_BROWSER_TRANSLATOR=1 96 SB_CXX_DEFINES := $(BASE_CXX_DEFINES) -DPNACL_BROWSER_TRANSLATOR=1
97 CXX_DEFINES := $(BASE_CXX_DEFINES) -DPNACL_BROWSER_TRANSLATOR=0 97 CXX_DEFINES := $(BASE_CXX_DEFINES) -DPNACL_BROWSER_TRANSLATOR=0
98 98
99 ifdef NOASSERT 99 ifdef NOASSERT
100 ASSERTIONS = -DNDEBUG 100 ASSERTIONS = -DNDEBUG
101 else 101 else
102 ASSERTIONS = 102 ASSERTIONS =
103 OBJDIR := $(OBJDIR)+Asserts 103 OBJDIR := $(OBJDIR)+Asserts
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 228
229 ifdef TSAN 229 ifdef TSAN
230 sb: 230 sb:
231 @echo "Skipping pnacl-sz.*.nexe: TSAN isn't supported under NaCl." 231 @echo "Skipping pnacl-sz.*.nexe: TSAN isn't supported under NaCl."
232 else 232 else
233 sb: $(SB_OBJDIR)/pnacl-sz.x86-32.nexe 233 sb: $(SB_OBJDIR)/pnacl-sz.x86-32.nexe
234 endif 234 endif
235 235
236 # SHOW_BUILD_ATTS is an executable that is run to show what build 236 # SHOW_BUILD_ATTS is an executable that is run to show what build
237 # attributes were used to build pnacl-sz. 237 # attributes were used to build pnacl-sz.
238 ifdef TEXTUAL_BITCODE 238 ifdef TEXTUAL_BITCODE
Karl 2015/07/21 21:07:01 Simplified this. TEXTUAL_BITCODE is no longer a bu
239 SHOW_BUILD_ATTS = echo "Can't show build attributes when TEXTUAL_BITCODE=1" 239 SHOW_BUILD_ATTS = echo "Can't show build attributes when TEXTUAL_BITCODE=1"
240 else 240 else
241 SHOW_BUILD_ATTS = $(OBJDIR)/pnacl-sz --build-atts 241 SHOW_BUILD_ATTS = $(OBJDIR)/pnacl-sz --build-atts
242 endif 242 endif
243 243
244 # Creates symbolic link so that testing is easier. Also runs 244 # Creates symbolic link so that testing is easier. Also runs
245 # pnacl-sz to verify that the defines flags have valid values, 245 # pnacl-sz to verify that the defines flags have valid values,
246 # as well as describe the corresponding build attributes. 246 # as well as describe the corresponding build attributes.
247 make_symlink: $(OBJDIR)/pnacl-sz 247 make_symlink: $(OBJDIR)/pnacl-sz
248 rm -rf pnacl-sz 248 rm -rf pnacl-sz
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 357
358 docs: 358 docs:
359 doxygen Doxyfile 359 doxygen Doxyfile
360 @echo See file://`pwd`/docs/html/index.html 360 @echo See file://`pwd`/docs/html/index.html
361 361
362 clean: 362 clean:
363 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json 363 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json
364 364
365 clean-all: clean 365 clean-all: clean
366 rm -rf build/ docs/ 366 rm -rf build/ docs/
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698