You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…flags (#17731)
Add `assembler_flags` field for adding arbitrary extra assembler flags when assembling Go-format assembly files.
Note: These flags will not be added to gcc/clang-format assembly that is assembled packages using Cgo.
This field can be specified on several different target types:
- On `go_mod` targets, the assembler flags are used when building any package involving the module including both first-party (i.e., `go_package` targets) and third-party dependencies.
- On `go_binary` targets, the assembler flags are used when building any packages comprising that binary including third-party dependencies. These assembler flags will be added after any assembler flags added by any `assembler_flags` field set on the applicable `go_mod` target.
- On `go_package` targets, the assembler flags are used only for building that specific package and not for any other package. These assembler flags will be added after any assembler flags added by any `assembler_flags` field set on the applicable `go_mod` target or applicable `go_binary` target.
Run `go doc cmd/asm` to see the flags supported by `go tool asm`.
Fixes#17441.
go
supports passing arbitrary assembler flags togo tool asm
invocations via a-asmflags
argument. Pants should support this feature.Model as fields on
go_binary
andgo_package
(for tests) that set additional assembler flags to use with defaults coming from option(s).The text was updated successfully, but these errors were encountered: