Bikeshedding on cc/cgo option/flag naming #16777
Replies: 2 comments 6 replies
-
First bike shed: Regarding the naming of C++ options, we should use "cxx" instead of "cpp" since "cpp" can also refer to the C preprocessor. That naming will match up with Go (e.g., |
Beta Was this translation helpful? Give feedback.
-
Next bike shed: naming the compiler/linker flag options and fields. For cgo, I was thinking |
Beta Was this translation helpful? Give feedback.
-
As per @tdyas 's suggestion, splitting out the bikeshed-on-naming to a discussion, and out of the PR.
See: #16424 (comment)
and
#16413 (comment)
Note: Both target aliases and subsystem options are in a state of flux, so they may not match each other at time of opening this discussion. That's fine, as this snapshot is merely a start to the conversation about how they should be named, not about how they are currently named.
Current Target Aliases
Current Subsystem Options
Aside: Just discovered this subsystem from a slack convo
https://www.pantsbuild.org/docs/reference-python-native-code
Annnnnnnd, cannot forget about Ninja: https://ninja-build.org/build.ninja.html
It's probably worth investigating (as an optimization step, not a preliminary step) using Pants to generate Ninja build files, which actually performs the compilation step. But, this is an aside until we have benchmarking numbers.
Beta Was this translation helpful? Give feedback.
All reactions