diff options
author | Harry Cutts <hcutts@chromium.org> | 2024-02-22 20:09:15 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2024-02-23 17:47:23 +0000 |
commit | fea3ca4ec92fbbe738b2c6f1fc512c08467fc291 (patch) | |
tree | c0bf262d0580af0cfd39fb322442a4466477761d | |
parent | 51930785d8c96bde83b5a2c6530f793099309449 (diff) | |
download | libchrome-gestures-fea3ca4ec92fbbe738b2c6f1fc512c08467fc291.tar.gz |
Include Address Sanitizer when sanitizers are enabled
In practice, this is just when running unit tests.
BUG=b:318520168
TEST=add -fsanitize=address to compiler flags, run unit tests [0], and
check no address sanitization failures are reported
[0]: cros_sdk env FEATURES="test" emerge-${BOARD} chromeos-base/gestures
Change-Id: Ifd8c335413238a1c0477100532a575d049a76261
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/gestures/+/5318358
Tested-by: Harry Cutts <hcutts@chromium.org>
Reviewed-by: Sean O'Brien <seobrien@chromium.org>
Commit-Queue: Harry Cutts <hcutts@chromium.org>
Code-Coverage: Sean O'Brien <seobrien@chromium.org>
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -131,10 +131,10 @@ CXXFLAGS+=\ ifeq (yes,$(SANITIZE_GESTURES)) CXXFLAGS+=\ - -fsanitize=undefined \ + -fsanitize=address,undefined \ -fno-sanitize-recover=all LINK_FLAGS+=\ - -fsanitize=undefined \ + -fsanitize=address,undefined \ -fno-sanitize-recover=all endif |