mirror of
https://github.com/golang/go
synced 2024-11-23 07:20:06 -07:00
cmd/go: compile runtime/internal/syscall as a runtime package
runtime/internal/syscall is a runtime package, so it should be built with -+. Specifically, we don't want libfuzzer instrumentation in Go functions defined in runtime/internal/syscall, which is disabled with -+. For #53190. Change-Id: I9f16f5c7c7ce10b98371e9de82fcea6da854e163 Reviewed-on: https://go-review.googlesource.com/c/go/+/413818 Run-TryBot: Michael Pratt <mpratt@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
8f9bfa9b7b
commit
a861eee51a
@ -30,15 +30,16 @@ import (
|
|||||||
const trimPathGoRootFinal string = "$GOROOT"
|
const trimPathGoRootFinal string = "$GOROOT"
|
||||||
|
|
||||||
var runtimePackages = map[string]struct{}{
|
var runtimePackages = map[string]struct{}{
|
||||||
"internal/abi": struct{}{},
|
"internal/abi": struct{}{},
|
||||||
"internal/bytealg": struct{}{},
|
"internal/bytealg": struct{}{},
|
||||||
"internal/cpu": struct{}{},
|
"internal/cpu": struct{}{},
|
||||||
"internal/goarch": struct{}{},
|
"internal/goarch": struct{}{},
|
||||||
"internal/goos": struct{}{},
|
"internal/goos": struct{}{},
|
||||||
"runtime": struct{}{},
|
"runtime": struct{}{},
|
||||||
"runtime/internal/atomic": struct{}{},
|
"runtime/internal/atomic": struct{}{},
|
||||||
"runtime/internal/math": struct{}{},
|
"runtime/internal/math": struct{}{},
|
||||||
"runtime/internal/sys": struct{}{},
|
"runtime/internal/sys": struct{}{},
|
||||||
|
"runtime/internal/syscall": struct{}{},
|
||||||
}
|
}
|
||||||
|
|
||||||
// The Go toolchain.
|
// The Go toolchain.
|
||||||
|
Loading…
Reference in New Issue
Block a user