diff --git a/Makefile b/Makefile index f22ac59c4..1ca41f8fe 100644 --- a/Makefile +++ b/Makefile @@ -43,6 +43,12 @@ else OPT += -DNDEBUG 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. ifdef COMPILE_WITH_ASAN # ASAN compile flags