]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/asm: rename "compiling runtime" flag
authorThan McIntosh <thanm@google.com>
Tue, 20 Oct 2020 13:06:42 +0000 (09:06 -0400)
committerThan McIntosh <thanm@google.com>
Tue, 20 Oct 2020 17:47:31 +0000 (17:47 +0000)
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>
src/cmd/asm/internal/flags/flags.go
src/cmd/dist/build.go
src/cmd/go/internal/work/gc.go

index 076543995919588673ac6b7bac21eb731113f9a3..426e0156aa5bd43d9bbf6dac97fdee5095c5a65a 100644 (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 (
index 11da38ebdf8e123c6519e557699724394f0611fd..d902addb0c1b9264f4485fc2db8c9f779503b5b1 100644 (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
index 2df4a52ba594f2d804e8be4d9e79421d26d9f17c..e93031431c8b2ee2c81e3d995c34dcd0062176b8 100644 (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