proposal: cmd/go: support CC_FOR_* #24294
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Proposal
Milestone
I'm working on generating standalone gomobile bindings, allowing you to first generate and then use regular go commands to build. For example, this works with my local version of gomobile:
Note that CC (and CXX) is GOARCH specific, so to build for all 4 android GOARCHs, a user have to go:
It would be nice if the go command supported the CC_FOR_* environment variables like make.bash does, so the user could set CC_FOR_android_arm, CC_FOR_android_arm64, CC_FOR_android_amd64 and CC_FOR_android_386 once and reduce the build to the much nicer:
I suppose for completeness, the go command has to support CC_FOR_TARGET and CXX_FOR_TARGET as well.
The text was updated successfully, but these errors were encountered: