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

Side by Side Diff: Makefile.standalone

Issue 983533003: Use the installed/downloaded objdump instead of work-dir one. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 9 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 | pydir/run-pnacl-sz.py » ('j') | no next file with comments »
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> ...
Jim Stichnoth 2015/03/05 17:19:53 Maybe add BINUTILS_BIN_PATH here for consistency?
jvoung (off chromium) 2015/03/05 19:26:06 Done.
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/
11 # directories of LLVM, Clang in tools/clang/, etc. 11 # directories of LLVM, Clang in tools/clang/, etc.
12 # Alternatively, if you're building vs. a binary download of LLVM, then 12 # Alternatively, if you're building vs. a binary download of LLVM, then
13 # LLVM_SRC_PATH can point to the main untarred directory. 13 # LLVM_SRC_PATH can point to the main untarred directory.
14 LLVM_SRC_PATH ?= ../llvm 14 LLVM_SRC_PATH ?= ../llvm
15 15
16 # LLVM_BIN_PATH is the directory where binaries are placed by the LLVM build 16 # LLVM_BIN_PATH is the directory where binaries are placed by the LLVM build
17 # process. It should contain the tools like opt, llc and clang. The default 17 # process. It should contain the tools like opt, llc and clang. The default
Jim Stichnoth 2015/03/05 17:19:53 Can you update the comment to reflect the actual s
jvoung (off chromium) 2015/03/05 19:26:06 My main fear of listing all the tools in the comme
Jim Stichnoth 2015/03/05 19:34:18 Good point. If you want to future-proof the test,
jvoung (off chromium) 2015/03/05 20:11:03 Hmm, next time =)
18 # reflects a debug build with autotools (configure & make). 18 # reflects a debug build with autotools (configure & make).
19 LLVM_BIN_PATH ?= $(shell readlink -e \ 19 LLVM_BIN_PATH ?= $(shell readlink -e \
20 ../../out/llvm_x86_64_linux_work/Release+Asserts/bin) 20 ../../out/llvm_x86_64_linux_work/Release+Asserts/bin)
21 21
22 # LIBCXX_INSTALL_PATH is the directory where libc++ is located. It should 22 # LIBCXX_INSTALL_PATH is the directory where libc++ is located. It should
23 # contain header files and corresponding libraries 23 # contain header files and corresponding libraries
24 LIBCXX_INSTALL_PATH ?= $(shell readlink -e \ 24 LIBCXX_INSTALL_PATH ?= $(shell readlink -e \
25 ../../../toolchain/linux_x86/pnacl_newlib) 25 ../../../toolchain/linux_x86/pnacl_newlib)
26 26
27 # CLANG_PATH is the location of the clang compiler to use. 27 # CLANG_PATH is the location of the clang compiler to use.
28 CLANG_PATH ?= $(shell readlink -e \ 28 CLANG_PATH ?= $(shell readlink -e \
29 ../../../../third_party/llvm-build/Release+Asserts/bin) 29 ../../../../third_party/llvm-build/Release+Asserts/bin)
30 30
31 # The location of binutils tools (e.g., objdump). 31 # The location of binutils tools (e.g., objdump).
32 BINUTILS_BIN_PATH ?= $(shell readlink -e \ 32 BINUTILS_BIN_PATH ?= $(shell readlink -e \
Jim Stichnoth 2015/03/05 17:19:53 There's a pretty strong and fixed relationship bet
jvoung (off chromium) 2015/03/05 19:26:06 Added a common base, for default initialization. I
33 » ../../out/binutils_pnacl_x86_64_linux_work/binutils) 33 » ../../../toolchain/linux_x86/pnacl_newlib/bin)
34 34
35 HOST_ARCH ?= x86_64 35 HOST_ARCH ?= x86_64
36 ifeq ($(HOST_ARCH),x86_64) 36 ifeq ($(HOST_ARCH),x86_64)
37 HOST_FLAGS = -m64 -stdlib=libc++ 37 HOST_FLAGS = -m64 -stdlib=libc++
38 else 38 else
39 ifeq ($(HOST_ARCH),x86) 39 ifeq ($(HOST_ARCH),x86)
40 HOST_FLAGS = -m32 -stdlib=libc++ 40 HOST_FLAGS = -m32 -stdlib=libc++
41 endif 41 endif
42 endif 42 endif
43 43
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 bloat: make_symlink 234 bloat: make_symlink
235 nm -C -S -l pnacl-sz | \ 235 nm -C -S -l pnacl-sz | \
236 bloat/bloat.py --nm-output=/dev/stdin syms > build/pnacl-sz.bloat.json 236 bloat/bloat.py --nm-output=/dev/stdin syms > build/pnacl-sz.bloat.json
237 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html 237 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html
238 238
239 clean: 239 clean:
240 rm -rf pnacl-sz *.o $(OBJDIR) build/pnacl-sz.bloat.json 240 rm -rf pnacl-sz *.o $(OBJDIR) build/pnacl-sz.bloat.json
241 241
242 clean-all: clean 242 clean-all: clean
243 rm -rf build/ 243 rm -rf build/
OLDNEW
« no previous file with comments | « no previous file | pydir/run-pnacl-sz.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698