Skip to content

Commit eccc938

Browse files
committed
Make cmake auto-configure cross platform
Signed-off-by: paulober <[email protected]>
1 parent 6b6a9d3 commit eccc938

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/utils/cmakeUtil.mts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,12 @@ export async function configureCmakeNinja(
234234
(buildType ? ` -DCMAKE_BUILD_TYPE=${buildType}` : "");
235235

236236
const zephyrWorkspace = buildZephyrWorkspacePath();
237-
const westExe = isWindows ? "west.exe" : "west";
238-
const westPath = join(zephyrWorkspace, "venv", "Scripts", westExe);
237+
const westPath = join(
238+
zephyrWorkspace,
239+
"venv",
240+
isWindows ? "Scripts" : "bin",
241+
isWindows ? "west.exe" : "west"
242+
);
239243
const zephyrBoard = isZephyrProject
240244
? await getBoardFromZephyrProject(
241245
join(folder.fsPath, ".vscode", "tasks.json")

0 commit comments

Comments
 (0)