feat: refactor activateMSVC

This commit is contained in:
Amin Yahyaabadi 2021-09-20 07:29:09 -05:00
parent b7eaefbab7
commit dcedb6e575
1 changed files with 11 additions and 0 deletions

View File

@ -64,6 +64,17 @@ export async function setupMSVC(
} catch (e) {
error(e as string | Error)
}
activateMSVC(VCTargetsPath, arch, toolset, sdk, uwp, spectre)
}
function activateMSVC(
VCTargetsPath: string | undefined,
arch: string,
toolset: string | undefined,
sdk?: string,
uwp?: boolean,
spectre?: boolean
) {
if (VCTargetsPath !== undefined && existsSync(VCTargetsPath)) {
exportVariable("VCTargetsPath", VCTargetsPath)
}