disable object-size santizer in debug builds

This avoids a warning-as-error:

 clang-5.0: error: the object size sanitizer has no effect at -O0, but
 is explicitly enabled:

Change-Id: I53a16acc3e743b42fe9c2f35919d3c09d5d601b7
Reviewed-on: https://skia-review.googlesource.com/55720
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
This commit is contained in:
Mike Klein 2017-10-05 11:22:09 -04:00 committed by Skia Commit-Bot
parent 8d64ee7795
commit 46d6c683c1

View File

@ -236,9 +236,12 @@ config("default") {
# or pass one of the couple common aliases used by the bots.
sanitizers = sanitize
if (sanitize == "ASAN") {
sanitizers = "address,bool,integer-divide-by-zero,nonnull-attribute,null,object-size,return,returns-nonnull-attribute,shift,signed-integer-overflow,unreachable,vla-bound,vptr"
sanitizers = "address,bool,integer-divide-by-zero,nonnull-attribute,null,return,returns-nonnull-attribute,shift,signed-integer-overflow,unreachable,vla-bound,vptr"
if (!is_mac) {
sanitizers += ",function"
sanitizers += ",function" # Not supported on Mac.
}
if (!is_debug) {
sanitizers += ",object-size" # No-op with somewhat annoying warning at -O0.
}
} else if (sanitize == "TSAN") {
sanitizers = "thread"