Add -fno-exceptions flag to ROCKSDB_LITE.
Summary: Add -fno-exceptions flag to ROCKSDB_LITE. Test Plan: make OPT=-DROCKSDB_LITE shared_lib -j32 Reviewers: sdong, igor Reviewed By: igor Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D29901
This commit is contained in:
parent
1f04066cab
commit
8c5781666e
6
Makefile
6
Makefile
@ -43,6 +43,12 @@ else
|
|||||||
OPT += -DNDEBUG
|
OPT += -DNDEBUG
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(filter -DROCKSDB_LITE,$(OPT)),)
|
||||||
|
# found
|
||||||
|
CFLAGS += -fno-exceptions
|
||||||
|
CXXFLAGS += -fno-exceptions
|
||||||
|
endif
|
||||||
|
|
||||||
# ASAN doesn't work well with jemalloc. If we're compiling with ASAN, we should use regular malloc.
|
# ASAN doesn't work well with jemalloc. If we're compiling with ASAN, we should use regular malloc.
|
||||||
ifdef COMPILE_WITH_ASAN
|
ifdef COMPILE_WITH_ASAN
|
||||||
# ASAN compile flags
|
# ASAN compile flags
|
||||||
|
Loading…
Reference in New Issue
Block a user