From 216644c61ca4f1176f98bd4ce1c6b4ad9d7c893b Mon Sep 17 00:00:00 2001 From: Islam AbdelRahman Date: Mon, 24 Jul 2017 10:41:09 -0700 Subject: [PATCH] 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 --- TARGETS | 1 + buckifier/targets_cfg.py | 1 + 2 files changed, 2 insertions(+) diff --git a/TARGETS b/TARGETS index 134bb5081..c6c0de48b 100644 --- a/TARGETS +++ b/TARGETS @@ -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", diff --git a/buckifier/targets_cfg.py b/buckifier/targets_cfg.py index 079b892a7..836493951 100644 --- a/buckifier/targets_cfg.py +++ b/buckifier/targets_cfg.py @@ -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", -- GitLab