diff options
author | Yueh-Hsuan Chiang <yhchiang@fb.com> | 2015-11-17 13:50:54 -0800 |
---|---|---|
committer | Yueh-Hsuan Chiang <yhchiang@fb.com> | 2015-11-17 13:52:04 -0800 |
commit | 8f0c83ae72d4709fc457d0f47c6efb1bb3525ae2 (patch) | |
tree | 8387cd1e196894debaace3e5f879955c34af22e6 | |
parent | 3a0bf873b544794b79e67245c775a9e265be8d47 (diff) |
Fix Java Makefilev4.1
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
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -63,6 +63,14 @@ ifeq ($(MAKECMDGOALS),rocksdbjavastatic) DEBUG_LEVEL=0 endif +ifeq ($(MAKECMDGOALS),rocksdbjavastaticrelease) + DEBUG_LEVEL=0 +endif + +ifeq ($(MAKECMDGOALS),rocksdbjavastaticpublish) + DEBUG_LEVEL=0 +endif + # compile with -O2 if debug level is not 2 ifneq ($(DEBUG_LEVEL), 2) OPT += -O2 -fno-omit-frame-pointer |