-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Fix -vs arg for ilc/crossgen #117268
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
Fix -vs arg for ilc/crossgen #117268
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the -vs
argument handling by allowing bare solution names and adds a fallback lookup for CMake-generated solutions in the AOT tools directory.
- Accept
coreclr
andcorehost
(without.sln
) as valid-vs
inputs - Add search path under
src\coreclr\tools\aot
for.slnx
files
Comments suppressed due to low confidence (1)
eng/build.ps1:220
- The variable
$solution
is undefined here; it should likely use$vs
instead to correctly construct the path to the.slnx
file.
$vs = Split-Path $PSScriptRoot -Parent | Join-Path -ChildPath "src\coreclr\tools\aot" | Join-Path -ChildPath "$solution.slnx"
PTAL @MichalStrehovsky |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks!
Now
-vs ilc
or-vs crossgen
should work (previously, these two require full path to be provided).Also, since all other solutions don't require file extension, I've removed it from coreclr and corehost as well.