Skip to content

Commit b11840a

Browse files
committed
Improve build system, support select msvc toolset version
Two format: - toolset with specified version `-cc msvc-14.39` - platform toolset name `-cc msvc-140`
1 parent 0cd7af9 commit b11840a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

1k/1kiss.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1522,8 +1522,10 @@ function preprocess_win() {
15221522
$vs_ver = [VersionEx]$Global:VS_INST.installationVersion
15231523
if ($vs_ver -ge [VersionEx]'16.0') {
15241524
$outputOptions += '-A', $arch
1525-
if ($TOOLCHAIN_VER) {
1525+
if ($TOOLCHAIN_VER -match '^\d+$') {
15261526
$outputOptions += "-Tv$TOOLCHAIN_VER"
1527+
} elseif($TOOLCHAIN_VER -match '^\d+\.\d+$') {
1528+
$outputOptions += '-T', "version=$TOOLCHAIN_VER"
15271529
}
15281530
}
15291531
else {

0 commit comments

Comments
 (0)