1
0
mirror of https://github.com/golang/go synced 2024-09-29 10:14:29 -06: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:
Than McIntosh 2020-10-20 09:06:42 -04:00
parent f62d3202bf
commit d595712540
3 changed files with 3 additions and 3 deletions

View File

@ -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 (

View File

@ -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

View File

@ -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