Skip to content

Commit edf2196

Browse files
committed
Add imacros to absolutized cgo env list
1 parent 66cd5f5 commit edf2196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/tools/builders/env.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var (
3535
// cgoEnvVars is the list of all cgo environment variable
3636
cgoEnvVars = []string{"CGO_CFLAGS", "CGO_CXXFLAGS", "CGO_CPPFLAGS", "CGO_LDFLAGS"}
3737
// cgoAbsEnvFlags are all the flags that need absolute path in cgoEnvVars
38-
cgoAbsEnvFlags = []string{"-I", "-L", "-isysroot", "-isystem", "-iquote", "-include", "-gcc-toolchain", "--sysroot", "-resource-dir", "-fsanitize-blacklist", "-fsanitize-ignorelist"}
38+
cgoAbsEnvFlags = []string{"-I", "-L", "-isysroot", "-isystem", "-iquote", "-include", "-imacros", "-gcc-toolchain", "--sysroot", "-resource-dir", "-fsanitize-blacklist", "-fsanitize-ignorelist"}
3939
// cgoAbsPlaceholder is placed in front of flag values that must be absolutized
4040
cgoAbsPlaceholder = "__GO_BAZEL_CC_PLACEHOLDER__"
4141
)

0 commit comments

Comments
 (0)