mirror of
https://github.com/golang/go
synced 2024-11-02 13:42:29 +00: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
1 changed files with 10 additions and 9 deletions
|
@ -30,15 +30,16 @@ import (
|
|||
const trimPathGoRootFinal string = "$GOROOT"
|
||||
|
||||
var runtimePackages = map[string]struct{}{
|
||||
"internal/abi": struct{}{},
|
||||
"internal/bytealg": struct{}{},
|
||||
"internal/cpu": struct{}{},
|
||||
"internal/goarch": struct{}{},
|
||||
"internal/goos": struct{}{},
|
||||
"runtime": struct{}{},
|
||||
"runtime/internal/atomic": struct{}{},
|
||||
"runtime/internal/math": struct{}{},
|
||||
"runtime/internal/sys": struct{}{},
|
||||
"internal/abi": struct{}{},
|
||||
"internal/bytealg": struct{}{},
|
||||
"internal/cpu": struct{}{},
|
||||
"internal/goarch": struct{}{},
|
||||
"internal/goos": struct{}{},
|
||||
"runtime": struct{}{},
|
||||
"runtime/internal/atomic": struct{}{},
|
||||
"runtime/internal/math": struct{}{},
|
||||
"runtime/internal/sys": struct{}{},
|
||||
"runtime/internal/syscall": struct{}{},
|
||||
}
|
||||
|
||||
// The Go toolchain.
|
||||
|
|
Loading…
Reference in a new issue