This commit is contained in:
Daniel 2024-11-18 20:49:03 +08:00
parent 8834cd39a5
commit 5de2ac66ff
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 134 additions and 0 deletions

7
kernel/harmony/build.sh Normal file
View file

@ -0,0 +1,7 @@
#!/bin/bash
export CGO_ENABLED=1
export GOOS=android
export GOARCH=arm64
export CC=/mnt/f/ohos-sdk-windows_linux-public/linux/native/llvm/bin/aarch64-unknown-linux-ohos-clang
go build --tags fts5 -ldflags "-s -w" -buildmode=c-shared -v -o libkernel.so .