Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
1Android2=======3 4For details on developing Go for Android, see the documentation in the5mobile subrepository:6 7	https://github.com/golang/mobile8 9To run the standard library tests, enable Cgo and use an appropriate10C compiler from the Android NDK. For example,11 12	CGO_ENABLED=1 \13	GOOS=android \14	GOARCH=arm64 \15	CC_FOR_TARGET=$NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang \16	./all.bash17 18To run tests on the Android device, add the bin directory to PATH so the19go tool can find the go_android_$GOARCH_exec wrapper generated by20make.bash. For example, to run the go1 benchmarks21 22	export PATH=$GOROOT/bin:$PATH23	cd $GOROOT/test/bench/go1/24	GOOS=android GOARCH=arm64 go test -bench=. -count=N -timeout=T25 26 
codekingpro/portable-devtools · Team Ai