Skip to content

Commit

Permalink
win: add an arch check to VS 2019 (#3025)
Browse files Browse the repository at this point in the history
  • Loading branch information
huseyinacacak-janea committed Apr 23, 2024
1 parent 93186f1 commit 323957b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 5 additions & 1 deletion lib/find-visualstudio.js
Expand Up @@ -363,7 +363,11 @@ class VisualStudioFinder {
return path.join(info.path, 'MSBuild', '15.0', 'Bin', 'MSBuild.exe')
}
if (versionYear === 2019) {
return msbuildPath
if (process.arch === 'arm64' && this.msBuildPathExists(msbuildPathArm64)) {
return msbuildPathArm64
} else {
return msbuildPath
}
}
}
/**
Expand Down
6 changes: 0 additions & 6 deletions test/test-find-visualstudio.js
Expand Up @@ -21,13 +21,7 @@ class TestVisualStudioFinder extends VisualStudioFinder {
}
}

const shouldSkip = process.platform !== 'win32'

describe('find-visualstudio', function () {
if (shouldSkip) {
return
}

this.beforeAll(function () {
// Condition to skip the test suite
if (process.env.SystemRoot === undefined) {
Expand Down

0 comments on commit 323957b

Please sign in to comment.