]> Cypherpunks repositories - gostls13.git/commit
cmd/asm,cmd/dist,cmd/go: remove asm -compiling-runtime flag
authorAustin Clements <austin@google.com>
Fri, 30 Jun 2023 20:33:49 +0000 (16:33 -0400)
committerAustin Clements <austin@google.com>
Tue, 22 Aug 2023 19:18:23 +0000 (19:18 +0000)
commit72946ae8674a295e7485982fe57c65c7142b2c14
treea3458c7ed5a9306dcd1a2f261e5112f35329b9b3
parent596120fdc6075c5789eae3a5caaf57639e7d18a3
cmd/asm,cmd/dist,cmd/go: remove asm -compiling-runtime flag

Currently, dist and go pass a -compiling-runtime flag to asm if
they're compiling a runtime package. However, now that we always pass
the package path to asm, it can make that determination just as well
as its callers can. This CL moves that check into asm and drops the
flag.

This in turn makes dist's copy of IsRuntimePackagePath unnecessary, so
we delete it.

Change-Id: I6ecf2d50b5b83965012af34dbe5f9a973ba0778b
Reviewed-on: https://go-review.googlesource.com/c/go/+/521697
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/asm/internal/asm/endtoend_test.go
src/cmd/asm/internal/flags/flags.go
src/cmd/asm/internal/lex/input.go
src/cmd/asm/internal/lex/lex.go
src/cmd/asm/internal/lex/lex_test.go
src/cmd/asm/main.go
src/cmd/dist/build.go
src/cmd/go/internal/work/gc.go
src/cmd/internal/objabi/path.go