From 8d940f94980c74453e7489ced83ea08b95f07660 Mon Sep 17 00:00:00 2001 From: zmf <279822581@qq.com> Date: Tue, 26 Dec 2023 10:35:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9E=84=E5=BB=BA=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E5=9C=A8win=E7=9A=84=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zmf <279822581@qq.com> --- attachment/repos/bootstrap/ohos.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/attachment/repos/bootstrap/ohos.py b/attachment/repos/bootstrap/ohos.py index 03373f1b16..7687acbeb8 100644 --- a/attachment/repos/bootstrap/ohos.py +++ b/attachment/repos/bootstrap/ohos.py @@ -153,14 +153,15 @@ def engineConfig(buildInfo, extraParam=""): + "%s%s" % (os.path.join(OHOS_NDK_HOME, "build-tools", "llvm", "bin"), PATH_SEP) + lastPath ) - + unixCommand = "" + if (platform.system() != "Windows"): + unixCommand = ("--target-sysroot %s " % os.path.join(OHOS_NDK_HOME, "sysroot") + + "--target-toolchain %s " % os.path.join(OHOS_NDK_HOME, "llvm") + + "--target-triple %s " % buildInfo.targetTriple) OPT = "--unoptimized --no-lto " if buildInfo.buildType == "debug" else "" runCommand( "%s " % os.path.join("src", "flutter", "tools", "gn") - + "--target-sysroot %s " % os.path.join(OHOS_NDK_HOME, "sysroot") - + "--target-toolchain %s " % os.path.join(OHOS_NDK_HOME, "llvm") - + "--target-triple %s " % buildInfo.targetTriple - + "--ohos " + + "--ohos " + unixCommand + "--ohos-cpu %s " % buildInfo.targetArch + "--runtime-mode %s " % buildInfo.buildType + OPT -- Gitee