提交 216644c6 编写于 作者: I Islam AbdelRahman 提交者: Facebook Github Bot

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
上级 e67b35c0
...@@ -18,6 +18,7 @@ rocksdb_compiler_flags = [ ...@@ -18,6 +18,7 @@ rocksdb_compiler_flags = [
"-DROCKSDB_SUPPORT_THREAD_LOCAL", "-DROCKSDB_SUPPORT_THREAD_LOCAL",
"-DHAVE_SSE42", "-DHAVE_SSE42",
"-DOS_LINUX", "-DOS_LINUX",
"-DROCKSDB_UBSAN_RUN",
# Flags to enable libs we include # Flags to enable libs we include
"-DSNAPPY", "-DSNAPPY",
"-DZLIB", "-DZLIB",
......
...@@ -22,6 +22,7 @@ rocksdb_compiler_flags = [ ...@@ -22,6 +22,7 @@ rocksdb_compiler_flags = [
"-DROCKSDB_SUPPORT_THREAD_LOCAL", "-DROCKSDB_SUPPORT_THREAD_LOCAL",
"-DHAVE_SSE42", "-DHAVE_SSE42",
"-DOS_LINUX", "-DOS_LINUX",
"-DROCKSDB_UBSAN_RUN",
# Flags to enable libs we include # Flags to enable libs we include
"-DSNAPPY", "-DSNAPPY",
"-DZLIB", "-DZLIB",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册