Skip to content

Commit

Permalink
-fsanitize-ignorelist should have an absolute path (#3001)
Browse files Browse the repository at this point in the history
It contains the path of a file used at compile time to change the
behavior of sanitiziers.

Add its older name of -fsanitize-blacklist too.
  • Loading branch information
brian-brt authored Nov 12, 2021
1 parent cbaf8c5 commit aaf48cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/tools/builders/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var (
// cgoEnvVars is the list of all cgo environment variable
cgoEnvVars = []string{"CGO_CFLAGS", "CGO_CXXFLAGS", "CGO_CPPFLAGS", "CGO_LDFLAGS"}
// cgoAbsEnvFlags are all the flags that need absolute path in cgoEnvVars
cgoAbsEnvFlags = []string{"-I", "-L", "-isysroot", "-isystem", "-iquote", "-include", "-gcc-toolchain", "--sysroot", "-resource-dir"}
cgoAbsEnvFlags = []string{"-I", "-L", "-isysroot", "-isystem", "-iquote", "-include", "-gcc-toolchain", "--sysroot", "-resource-dir", "-fsanitize-blacklist", "-fsanitize-ignorelist"}
)

// env holds a small amount of Go environment and toolchain information
Expand Down

0 comments on commit aaf48cb

Please sign in to comment.