diff --git a/attachment/repos/bootstrap/ohos.py b/attachment/repos/bootstrap/ohos.py index 03373f1b16ff67adb76d90b85d1069143f58169c..7687acbeb8482fa5f21a3c8dfb9717618c68fae6 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