Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for VS2022 #48

Merged
merged 4 commits into from
Oct 7, 2021
Merged

Add support for VS2022 #48

merged 4 commits into from
Oct 7, 2021

Conversation

beached
Copy link
Contributor

@beached beached commented Oct 5, 2021

This allows support of VS2022, it adds the check to programfiles in addition to programfilesx86

index.js Outdated
Comment on lines 37 to 48
for (const prog_files of PROGRAM_FILES) {
for (const ver of VERSIONS) {
for (const ed of EDITIONS) {
path = `${prog_files}\\Microsoft Visual Studio\\${ver}\\${ed}\\VC\\Auxiliary\\Build\\vcvarsall.bat`
core.info(`Trying standard location: ${path}`)
if (fs.existsSync(path)) {
core.info(`Found standard location: ${path}`)
return path
}
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, please follow the original rule of indentation.

Suggested change
for (const prog_files of PROGRAM_FILES) {
for (const ver of VERSIONS) {
for (const ed of EDITIONS) {
path = `${prog_files}\\Microsoft Visual Studio\\${ver}\\${ed}\\VC\\Auxiliary\\Build\\vcvarsall.bat`
core.info(`Trying standard location: ${path}`)
if (fs.existsSync(path)) {
core.info(`Found standard location: ${path}`)
return path
}
}
}
}
for (const prog_files of PROGRAM_FILES) {
for (const ver of VERSIONS) {
for (const ed of EDITIONS) {
path = `${prog_files}\\Microsoft Visual Studio\\${ver}\\${ed}\\VC\\Auxiliary\\Build\\vcvarsall.bat`
core.info(`Trying standard location: ${path}`)
if (fs.existsSync(path)) {
core.info(`Found standard location: ${path}`)
return path
}
}
}
}

@beached
Copy link
Contributor Author

beached commented Oct 6, 2021

Sorry about that, I think I fixed it. 2 spaces per indent.

@pzhlkj6612
Copy link
Contributor

Sorry about that, I think I fixed it. 2 spaces per indent.

Well, not really. The original is 4 spaces per indent... 🤪
Could you please adjust it again?

In addition, just now, you could have applied my suggestion on GitHub without submitting a new commit manually. See Incorporating feedback in your pull request - GitHub Docs.

Copy link
Contributor

@pzhlkj6612 pzhlkj6612 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@ilammy
Copy link
Owner

ilammy commented Oct 7, 2021

Thanks! Both of you ❤️

@ilammy ilammy merged commit bb050e7 into ilammy:master Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants