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

Side by Side Diff: Makefile.standalone

Issue 2251153002: Subzero: Include commit count in revision string. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 4 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 | « Makefile ('k') | no next file » | 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> 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 # SZTARGET=ARM32 104 # SZTARGET=ARM32
105 # SZTARGET=MIPS32 105 # SZTARGET=MIPS32
106 # SZTARGET=X8632 106 # SZTARGET=X8632
107 # SZTARGET=X8664 107 # SZTARGET=X8664
108 ifdef SZTARGET 108 ifdef SZTARGET
109 OBJDIR := $(OBJDIR)+T_$(SZTARGET) 109 OBJDIR := $(OBJDIR)+T_$(SZTARGET)
110 BASE_CXX_DEFINES += -DSZTARGET=$(SZTARGET) 110 BASE_CXX_DEFINES += -DSZTARGET=$(SZTARGET)
111 endif 111 endif
112 112
113 BASE_CXX_DEFINES += -DPNACL_LLVM 113 BASE_CXX_DEFINES += -DPNACL_LLVM
114 BASE_CXX_DEFINES += -DSUBZERO_REVISION=$(shell git rev-parse HEAD) 114 SZ_COMMIT_COUNT := $(shell git rev-list --count HEAD)
115 SZ_GIT_HASH := $(shell git rev-parse HEAD)
116 BASE_CXX_DEFINES += -DSUBZERO_REVISION=$(SZ_COMMIT_COUNT)_$(SZ_GIT_HASH)
115 117
116 CXX_DEFINES := $(BASE_CXX_DEFINES) -DPNACL_BROWSER_TRANSLATOR=0 118 CXX_DEFINES := $(BASE_CXX_DEFINES) -DPNACL_BROWSER_TRANSLATOR=0
117 119
118 ifdef NOASSERT 120 ifdef NOASSERT
119 ASSERTIONS = -DNDEBUG 121 ASSERTIONS = -DNDEBUG
120 else 122 else
121 ASSERTIONS = 123 ASSERTIONS =
122 OBJDIR := $(OBJDIR)+Asserts 124 OBJDIR := $(OBJDIR)+Asserts
123 endif 125 endif
124 126
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 793
792 help-check-xtest: 794 help-check-xtest:
793 @cat Makefile.standalone-help/check-xtest.txt 795 @cat Makefile.standalone-help/check-xtest.txt
794 796
795 clean: 797 clean:
796 rm -rf pnacl-sz *.o $(foreach nexe,$(NEXES),$(notdir $(nexe))) \ 798 rm -rf pnacl-sz *.o $(foreach nexe,$(NEXES),$(notdir $(nexe))) \
797 $(OBJDIR) $(SB_OBJDIR) $(SBB_OBJDIR) build/*.bloat.json 799 $(OBJDIR) $(SB_OBJDIR) $(SBB_OBJDIR) build/*.bloat.json
798 800
799 clean-all: clean 801 clean-all: clean
800 rm -rf build/ crosstest/Output/ 802 rm -rf build/ crosstest/Output/
OLDNEW
« no previous file with comments | « Makefile ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698