-
Notifications
You must be signed in to change notification settings - Fork 206
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
Support cross-architecture compilation in ILC #591
Support cross-architecture compilation in ILC #591
Conversation
3441dc9
to
9de2d06
Compare
@@ -103,7 +103,7 @@ stages: | |||
isOfficialBuild: ${{ variables.isOfficialBuild }} | |||
timeoutInMinutes: 90 | |||
testGroup: innerloop | |||
buildArgs: -s nativeaot+libs+nativeaot.packages -c release | |||
buildArgs: -s nativeaot.objwriter+nativeaot+libs+nativeaot.packages -c release |
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.
We should watch next couple official builds and verify that they succeed.
<TargetSpec>$(TargetOSComponent)_$(TargetArchitecture)_$(TargetArchitecture)</TargetSpec> | ||
</PropertyGroup> | ||
|
||
<!-- On Windows we can re-use PGO-optimized clrjit.dll produced by the build for AOT compilation. |
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.
I am not sure whether it is worth the trouble that it may cause (e.g. with symbols), but since you have done it we can give it a try.
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.
This logic is copied from crossgen2.csproj.
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.
LGTM. Thank you!
• Build
clr.alljits
subset by default and publish resulting JIT libraries with ILC.• Choose JIT library in ILC dynamically, like we do in crossgen2.
• In official builds, build
objwriter
library by requestingnative.objwriter
subset and publish it with ILC.• If
native.objwriter
subset was not requested, extractobjwriter
library from Microsoft.DotNet.ILCompiler package.• Remove extra backslashes in paths.
Fixes #63 and #218.