From 417562709a14f5ace5889c4b5d8c051a897dfccf Mon Sep 17 00:00:00 2001 From: Xi Lin Date: Tue, 23 Sep 2025 16:22:06 +0800 Subject: [PATCH] Use os.pathsep in PATH to fix compilation errors in macos --- platform/openharmony/detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/openharmony/detect.py b/platform/openharmony/detect.py index 5a2348bab92a..7942b0338833 100644 --- a/platform/openharmony/detect.py +++ b/platform/openharmony/detect.py @@ -78,7 +78,7 @@ def configure(env: "SConsEnvironment"): ## Compiler configuration # Save this in environment for use by other modules - env["ENV"]["PATH"] = f"{sdk_root}/native/llvm/bin;" + env["ENV"]["PATH"] + env["ENV"]["PATH"] = f"{sdk_root}/native/llvm/bin{os.pathsep}" + env["ENV"]["PATH"] env["CC"] = "clang" env["CXX"] = "clang++"