From dc3be5aad3f5b660166f9ea52bb4f371e565f59e Mon Sep 17 00:00:00 2001 From: halx99 Date: Sun, 24 Mar 2024 05:44:05 +0800 Subject: [PATCH] Improve build system error prompt --- 1k/build.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/1k/build.ps1 b/1k/build.ps1 index 3c7db96ccb..c9939bfb69 100644 --- a/1k/build.ps1 +++ b/1k/build.ps1 @@ -386,6 +386,9 @@ $toolchains = @{ if (!$TOOLCHAIN) { $TOOLCHAIN = $toolchains[$TARGET_OS] } +if (!$TOOLCHAIN) { + throw "1kiss: Unsupported target os: $TARGET_OS" +} $TOOLCHAIN_INFO = $TOOLCHAIN.Split('-') $TOOLCHAIN_VER = $null if ($TOOLCHAIN_INFO.Count -ge 2) {