FORCE_GIT_SHA
Summary: In third-party2 build we need to force git sha because we're compiling from a different git repositry. Test Plan: `FORCE_GIT_SHA=igor make` Reviewers: kradhakrishnan, sdong Reviewed By: kradhakrishnan Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D38679
This commit is contained in:
parent
04feaeebb9
commit
08b6b3796e
6
Makefile
6
Makefile
@ -177,7 +177,11 @@ CXXFLAGS += $(WARNING_FLAGS) -I. -I./include $(PLATFORM_CXXFLAGS) $(OPT) -Woverl
|
|||||||
LDFLAGS += $(PLATFORM_LDFLAGS)
|
LDFLAGS += $(PLATFORM_LDFLAGS)
|
||||||
|
|
||||||
date := $(shell date +%F)
|
date := $(shell date +%F)
|
||||||
git_sha := $(shell git rev-parse HEAD 2>/dev/null)
|
ifdef FORCE_GIT_SHA
|
||||||
|
git_sha := $(FORCE_GIT_SHA)
|
||||||
|
else
|
||||||
|
git_sha := $(shell git rev-parse HEAD 2>/dev/null)
|
||||||
|
endif
|
||||||
gen_build_version = \
|
gen_build_version = \
|
||||||
printf '%s\n' \
|
printf '%s\n' \
|
||||||
'\#include "build_version.h"' \
|
'\#include "build_version.h"' \
|
||||||
|
Loading…
Reference in New Issue
Block a user