mirror of https://github.com/aminya/setup-cpp
fix: return on msvc installation for other os
This commit is contained in:
parent
0d2f513d36
commit
c6aac2897f
|
@ -29,6 +29,9 @@ export async function setupMSVC(
|
||||||
spectre?: boolean,
|
spectre?: boolean,
|
||||||
arch = osArch()
|
arch = osArch()
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
|
if (process.platform !== "win32") {
|
||||||
|
return
|
||||||
|
}
|
||||||
let toolset: string | undefined
|
let toolset: string | undefined
|
||||||
let VCTargetsPath: string | undefined
|
let VCTargetsPath: string | undefined
|
||||||
if (version === "2015") {
|
if (version === "2015") {
|
||||||
|
|
Loading…
Reference in New Issue