mirror of
https://github.com/golang/go
synced 2024-11-17 05:54:46 -07:00
cmd/asm: rename "compiling runtime" flag
Rename the assembler "-compilingRuntime" flag to "-compiling-runtime", to be more consistent with the flag style of other Go commands. Change-Id: I8cc5cbf0b9b34d1dd4e9fa499d3fec8c1ef10b6e Reviewed-on: https://go-review.googlesource.com/c/go/+/263857 Trust: Than McIntosh <thanm@google.com> Run-TryBot: Than McIntosh <thanm@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Austin Clements <austin@google.com> Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
parent
f62d3202bf
commit
d595712540
@ -24,7 +24,7 @@ var (
|
||||
SymABIs = flag.Bool("gensymabis", false, "write symbol ABI information to output file, don't assemble")
|
||||
Importpath = flag.String("p", "", "set expected package import to path")
|
||||
Spectre = flag.String("spectre", "", "enable spectre mitigations in `list` (all, ret)")
|
||||
CompilingRuntime = flag.Bool("compilingRuntime", false, "source to be compiled is part of the Go runtime")
|
||||
CompilingRuntime = flag.Bool("compiling-runtime", false, "source to be compiled is part of the Go runtime")
|
||||
)
|
||||
|
||||
var (
|
||||
|
2
src/cmd/dist/build.go
vendored
2
src/cmd/dist/build.go
vendored
@ -833,7 +833,7 @@ func runInstall(pkg string, ch chan struct{}) {
|
||||
}
|
||||
goasmh := pathf("%s/go_asm.h", workdir)
|
||||
if IsRuntimePackagePath(pkg) {
|
||||
asmArgs = append(asmArgs, "-compilingRuntime")
|
||||
asmArgs = append(asmArgs, "-compiling-runtime")
|
||||
if os.Getenv("GOEXPERIMENT") == "regabi" {
|
||||
// In order to make it easier to port runtime assembly
|
||||
// to the register ABI, we introduce a macro
|
||||
|
@ -293,7 +293,7 @@ func asmArgs(a *Action, p *load.Package) []interface{} {
|
||||
}
|
||||
}
|
||||
if objabi.IsRuntimePackagePath(pkgpath) {
|
||||
args = append(args, "-compilingRuntime")
|
||||
args = append(args, "-compiling-runtime")
|
||||
if objabi.Regabi_enabled != 0 {
|
||||
// In order to make it easier to port runtime assembly
|
||||
// to the register ABI, we introduce a macro
|
||||
|
Loading…
Reference in New Issue
Block a user