Fix Java Makefile
Summary: In case rocksdb java package is built using make rocksdbjavastaticrelease, then only those rocksdb binary built under the virtual environments is release build. This patch fix this issue. Test Plan: PORTABLE=1 V=2 make rocksdbjavastaticrelease -j32 and make sure -O2 and -NDEBUG is included when compiling all source files. Reviewers: sdong, anthony, IslamAbdelRahman, rven, kradhakrishnan, igor Reviewed By: igor Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D50895
This commit is contained in:
parent
75a8bad2ab
commit
f2ebb6745a
8
Makefile
8
Makefile
@ -73,6 +73,14 @@ ifeq ($(MAKECMDGOALS),rocksdbjavastatic)
|
|||||||
DEBUG_LEVEL=0
|
DEBUG_LEVEL=0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(MAKECMDGOALS),rocksdbjavastaticrelease)
|
||||||
|
DEBUG_LEVEL=0
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(MAKECMDGOALS),rocksdbjavastaticpublish)
|
||||||
|
DEBUG_LEVEL=0
|
||||||
|
endif
|
||||||
|
|
||||||
# compile with -O2 if debug level is not 2
|
# compile with -O2 if debug level is not 2
|
||||||
ifneq ($(DEBUG_LEVEL), 2)
|
ifneq ($(DEBUG_LEVEL), 2)
|
||||||
OPT += -O2 -fno-omit-frame-pointer
|
OPT += -O2 -fno-omit-frame-pointer
|
||||||
|
Loading…
Reference in New Issue
Block a user