Improve build system error prompt

This commit is contained in:
halx99 2024-03-24 05:44:05 +08:00
parent 2740c4870b
commit dc3be5aad3
1 changed files with 3 additions and 0 deletions

View File

@ -386,6 +386,9 @@ $toolchains = @{
if (!$TOOLCHAIN) { if (!$TOOLCHAIN) {
$TOOLCHAIN = $toolchains[$TARGET_OS] $TOOLCHAIN = $toolchains[$TARGET_OS]
} }
if (!$TOOLCHAIN) {
throw "1kiss: Unsupported target os: $TARGET_OS"
}
$TOOLCHAIN_INFO = $TOOLCHAIN.Split('-') $TOOLCHAIN_INFO = $TOOLCHAIN.Split('-')
$TOOLCHAIN_VER = $null $TOOLCHAIN_VER = $null
if ($TOOLCHAIN_INFO.Count -ge 2) { if ($TOOLCHAIN_INFO.Count -ge 2) {