From b425edc01ae999d3ed8018a5d32acaa55c442ef2 Mon Sep 17 00:00:00 2001 From: Jonathan Schwender Date: Wed, 19 Nov 2025 11:02:37 +0100 Subject: [PATCH] Fix cross-compiling to ohos on macos 26 Appending the cross-compile toolchain to path instead of prepending fixes the issue of `nsinstall` being unable to run. Signed-off-by: Jonathan Schwender --- ohos-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ohos-build b/ohos-build index 4574968e79..48ee178472 100755 --- a/ohos-build +++ b/ohos-build @@ -75,7 +75,7 @@ def create_environment_for_build() -> Dict[str, str]: llvm_toolchain = os.path.join(ndk_root, "llvm") - env['PATH'] = os.pathsep.join([os.path.join(llvm_toolchain, "bin"), env["PATH"]]) + env['PATH'] = os.pathsep.join([env["PATH"], os.path.join(llvm_toolchain, "bin")]) set_toolchain_binaries_in_env(llvm_toolchain, target_triple, env)