gogio: [android] add CXX environment variable for cgo cross-compilation

Adds the CXX environment variable when building Android shared libraries
to ensure proper C++ compiler selection for cgo-enabled packages.

Signed-off-by: CoyAce <AkeyCoy@gmail.com>
This commit is contained in:
CoyAce
2026-01-26 21:59:44 +08:00
committed by Elias Naur
parent f587d2f097
commit e5b1a4e6cd
+1
View File
@@ -232,6 +232,7 @@ func compileAndroid(tmpDir string, tools *androidTools, bi *buildInfo) (err erro
"GOARM=7", // Avoid softfloat.
"CGO_ENABLED=1",
"CC="+clang,
"CXX="+clang+"++",
)
builds.Go(func() error {
_, err := runCmd(cmd)