enable UBSAN macro in TARGETS

Summary:
simply enable the macro in internal build, it wont hurt other sanitizers and will fix UBSAN issues
Closes https://github.com/facebook/rocksdb/pull/2625

Differential Revision: D5475897

Pulled By: IslamAbdelRahman

fbshipit-source-id: 262c6fd5de3c1906f4b29e55b39110f125f41057
This commit is contained in:
Islam AbdelRahman 2017-07-24 10:41:09 -07:00 committed by Facebook Github Bot
parent e67b35c076
commit 216644c61c
2 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@ rocksdb_compiler_flags = [
"-DROCKSDB_SUPPORT_THREAD_LOCAL",
"-DHAVE_SSE42",
"-DOS_LINUX",
"-DROCKSDB_UBSAN_RUN",
# Flags to enable libs we include
"-DSNAPPY",
"-DZLIB",

View File

@ -22,6 +22,7 @@ rocksdb_compiler_flags = [
"-DROCKSDB_SUPPORT_THREAD_LOCAL",
"-DHAVE_SSE42",
"-DOS_LINUX",
"-DROCKSDB_UBSAN_RUN",
# Flags to enable libs we include
"-DSNAPPY",
"-DZLIB",