Skip to content

Commit

Permalink
Improve build system, support select msvc toolset version
Browse files Browse the repository at this point in the history
Two format:
- toolset with specified version `-cc msvc-14.39`
- platform toolset name `-cc msvc-140`
  • Loading branch information
halx99 committed Feb 23, 2025
1 parent 0cd7af9 commit b11840a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 1k/1kiss.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1522,8 +1522,10 @@ function preprocess_win() {
$vs_ver = [VersionEx]$Global:VS_INST.installationVersion
if ($vs_ver -ge [VersionEx]'16.0') {
$outputOptions += '-A', $arch
if ($TOOLCHAIN_VER) {
if ($TOOLCHAIN_VER -match '^\d+$') {
$outputOptions += "-Tv$TOOLCHAIN_VER"
} elseif($TOOLCHAIN_VER -match '^\d+\.\d+$') {
$outputOptions += '-T', "version=$TOOLCHAIN_VER"
}
}
else {
Expand Down

0 comments on commit b11840a

Please sign in to comment.