From 160143c275966a59b7d28512f84734cf5c9c95b3 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 2 Dec 2024 21:12:21 +0800 Subject: [PATCH] :art: Support HarmonyOS NEXT system --- kernel/harmony/build-win.sh | 2 +- kernel/harmony/build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/harmony/build-win.sh b/kernel/harmony/build-win.sh index 1624420a9..496c48599 100755 --- a/kernel/harmony/build-win.sh +++ b/kernel/harmony/build-win.sh @@ -5,6 +5,6 @@ export CGO_ENABLED=1 export GOOS=android export GOARCH=amd64 export CC=/mnt/f/ohos-sdk-windows_linux-public/linux/native/llvm/bin/x86_64-unknown-linux-ohos-clang -export CGO_FLAGS="-I/mnt/f/log-adaptor/include" +export CGO_CFLAGS="-I/mnt/f/log-adaptor/include" export CGO_LDFLAGS="-L/mnt/f/log-adaptor//dist/x86_64" go build --tags fts5 -ldflags "-s -w" -buildmode=c-shared -v -o libkernel.so . diff --git a/kernel/harmony/build.sh b/kernel/harmony/build.sh index d1026565f..5ac8c9f24 100755 --- a/kernel/harmony/build.sh +++ b/kernel/harmony/build.sh @@ -5,6 +5,6 @@ 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 -export CGO_FLAGS="-I/mnt/f/log-adaptor/include" +export CGO_CFLAGS="-I/mnt/f/log-adaptor/include" export CGO_LDFLAGS="-L/mnt/f/log-adaptor//dist/arm64-v8a" go build --tags fts5 -ldflags "-s -w" -buildmode=c-shared -v -o libkernel.so .