Skip to content

Commit 36e3c01

Browse files
authored
Fix cross-compiling to ohos on macos 26 (#669)
Appending the cross-compile toolchain to path instead of prepending fixes the issue of `nsinstall` being unable to run. Signed-off-by: Jonathan Schwender <[email protected]>
1 parent e1f9c3a commit 36e3c01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ohos-build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def create_environment_for_build() -> Dict[str, str]:
7575

7676
llvm_toolchain = os.path.join(ndk_root, "llvm")
7777

78-
env['PATH'] = os.pathsep.join([os.path.join(llvm_toolchain, "bin"), env["PATH"]])
78+
env['PATH'] = os.pathsep.join([env["PATH"], os.path.join(llvm_toolchain, "bin")])
7979

8080
set_toolchain_binaries_in_env(llvm_toolchain, target_triple, env)
8181

0 commit comments

Comments
 (0)