diff options
author | Ben Wagner <benjaminwagner@google.com> | 2018-01-03 11:04:30 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-03 17:36:19 +0000 |
commit | 314d7c267f968643966d0e9678db9ef4e53456a4 (patch) | |
tree | cf9fe85fd0a32a21fc2bf6ed0d1f9ed493988ea9 /gn | |
parent | d9852cd27a7618b1e8587897e3b1135284004ba8 (diff) |
Add Win UBSAN jobs.
Bug: skia:2679
Change-Id: Ia462af01b9832da90206b9e9be2278cb48c6c502
Reviewed-on: https://skia-review.googlesource.com/86401
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Ben Wagner <benjaminwagner@google.com>
Diffstat (limited to 'gn')
-rw-r--r-- | gn/BUILD.gn | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/gn/BUILD.gn b/gn/BUILD.gn index 52c0838737..c94d2372d8 100644 --- a/gn/BUILD.gn +++ b/gn/BUILD.gn @@ -206,13 +206,22 @@ config("default") { # You can either pass the sanitizers directly, e.g. "address,undefined", # or pass one of the couple common aliases used by the bots. sanitizers = sanitize - if (sanitize == "ASAN") { - sanitizers = "address,bool,float-cast-overflow,integer-divide-by-zero,nonnull-attribute,null,return,returns-nonnull-attribute,shift,signed-integer-overflow,unreachable,vla-bound,vptr" - if (!is_mac) { - sanitizers += ",function" # Not supported on Mac. + if (sanitize == "ASAN" || sanitize == "UBSAN") { + # ASAN implicitly runs all UBSAN checks also. + sanitizers = "bool,float-cast-overflow,integer-divide-by-zero,nonnull-attribute,null,return,returns-nonnull-attribute,shift,signed-integer-overflow,unreachable,vla-bound" + if (!is_mac && !is_win) { + sanitizers += ",function" # Not supported on Mac or Win. } - if (!is_debug) { - sanitizers += ",object-size" # No-op with somewhat annoying warning at -O0. + if (!is_win) { + sanitizers += ",vptr" # Not supported on Win. + } + if (!is_debug && !is_win) { + # No-op with somewhat annoying warning at -O0. + # Seems to be broken on Win. + sanitizers += ",object-size" + } + if (sanitize == "ASAN") { + sanitizers += ",address" } } else if (sanitize == "TSAN") { sanitizers = "thread" |