mirror of https://github.com/aminya/setup-cpp
fix: specify the toolset
This commit is contained in:
parent
73ec89a099
commit
a381fc0e98
|
@ -15,10 +15,11 @@ The package can be used locally or from CI services like GitHub Actions. Stay tu
|
|||
|
||||
`setup-cpp` can install all of these tools:
|
||||
|
||||
- llvm
|
||||
- gcc
|
||||
- cmake
|
||||
- ninja
|
||||
- llvm
|
||||
- gcc
|
||||
- msvc
|
||||
- vcvarsall
|
||||
- vcpkg
|
||||
- meson
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -22,7 +22,7 @@ export async function setupMSVC(
|
|||
// https://github.com/aminya/setup-cpp/issues/1
|
||||
try {
|
||||
if (version === "2015") {
|
||||
// toolset = "14.0.25420.1"
|
||||
toolset = "14.0.25420.1"
|
||||
await setupChocoPack("visualcpp-build-tools", toolset, [
|
||||
"--ignore-dependencies",
|
||||
"--params",
|
||||
|
@ -34,14 +34,14 @@ export async function setupMSVC(
|
|||
exportVariable("VCTargetsPath", VCTargetsPath)
|
||||
}
|
||||
} else if (version === "2017") {
|
||||
// toolset = "14.16"
|
||||
toolset = "14.16"
|
||||
await setupChocoPack("visualstudio2017buildtools", "15.9.41.0", [
|
||||
"--package-parameters",
|
||||
"'--add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --passive'",
|
||||
])
|
||||
// VCTargetsPath = "C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16" // TODO verify path
|
||||
} else if (version === "2019") {
|
||||
// toolset = "14.29.30133"
|
||||
toolset = "14.29"
|
||||
await setupChocoPack("visualstudio2019buildtools", "16.11.7.0", [
|
||||
"--package-parameters",
|
||||
"'--add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --passive'",
|
||||
|
|
Loading…
Reference in New Issue