go: what to name a compiler flags field? #17685
Replies: 6 comments
-
Related(ish): #16777 |
Beta Was this translation helpful? Give feedback.
-
For context, the underlying Go tools used by Pants are called But Go also exposes |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Buck uses |
Beta Was this translation helpful? Give feedback.
-
Going to stick with |
Beta Was this translation helpful? Give feedback.
-
What should we name the field on Go target types for adding extra compiler flags to compilation of Go files?
In #17683, I've called the field
compiler_flags
but that seems too verbose and could be better.Some ideas:
compile_flags
build_flags
compile_opts
build_opts
Bazel calls its equivalent field
gc_goopts
wheregc
means "Go compiler" andgoopts
is Go options.This naming convention will also be used for assembler and linker flags as well. Maybe
asm_flags
andlink_flags
? Orassembler_flags
orlinker_flags
?Beta Was this translation helpful? Give feedback.
All reactions