diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2018-06-26 14:01:40 -0700 |
---|---|---|
committer | Pirama Arumuga Nainar <pirama@google.com> | 2018-06-26 14:18:16 -0700 |
commit | 83d716c41348b8e461fd9b6add51ea2e65e8c26e (patch) | |
tree | 45edf22dd49caa3cd5f581e3da8dbad407f6dfae | |
parent | 9d951a10f39b4d322e829f4d5786b9e0fbb685b8 (diff) | |
download | build_soong-83d716c41348b8e461fd9b6add51ea2e65e8c26e.tar.gz build_soong-83d716c41348b8e461fd9b6add51ea2e65e8c26e.tar.bz2 build_soong-83d716c41348b8e461fd9b6add51ea2e65e8c26e.zip |
Do not enable sanitizers on Windows
Bug: http://b/69933068
Test: m native-host-cross SANITIZE_HOST=address
Change-Id: Ia9ff941fb569b0a2e9c4eef604fd165f94bca31a
-rw-r--r-- | cc/sanitize.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cc/sanitize.go b/cc/sanitize.go index 080ac094..4c8a6114 100644 --- a/cc/sanitize.go +++ b/cc/sanitize.go @@ -155,7 +155,9 @@ func (sanitize *sanitize) begin(ctx BaseModuleContext) { if ctx.clang() { if ctx.Host() { - globalSanitizers = ctx.Config().SanitizeHost() + if !ctx.Windows() { + globalSanitizers = ctx.Config().SanitizeHost() + } } else { arches := ctx.Config().SanitizeDeviceArch() if len(arches) == 0 || inList(ctx.Arch().ArchType.Name, arches) { |