]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo/internal/testsanitizers: for "leak", use -fsanitize=address
authorIan Lance Taylor <iant@golang.org>
Thu, 6 Mar 2025 20:54:27 +0000 (12:54 -0800)
committerGopher Robot <gobot@golang.org>
Thu, 6 Mar 2025 21:27:16 +0000 (13:27 -0800)
commitf55bb135d28bc95131a8c987d50350e5c6d7f633
treed57cc7d6d86d440b80d060353cf770e88100f07f
parent24d22352d308dc4f2283ed83f4794c5b4da661ee
cmd/cgo/internal/testsanitizers: for "leak", use -fsanitize=address

We currently test the leak detector by running "go build -asan",
which will pass -fsanitize=address to the C compiler.
So use that when testing whether the option works.

Fixes #72128

Change-Id: I4efc0b689bfda04c80dbac30a5c757215f297d2f
Reviewed-on: https://go-review.googlesource.com/c/go/+/655535
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/cgo/internal/testsanitizers/cc_test.go