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

Don't run crossgen2 or ilc when cross-building in source-build #95088

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

jtschuster
Copy link
Member

To make the runtime compatible with cross-arch compilation, we should add --cross to the source-build build, and avoid publishing ReadyToRun or AOT compiled. The compilers don't have a valid runtime pack for the host during the crossbuild at this point, so trying to run them fails.

Part of dotnet/source-build#3698

@jtschuster jtschuster changed the title Make build VMR cross build compatible Don't run crossgen2 or ilc when cross-building in source-build Nov 22, 2023
@jtschuster jtschuster merged commit ef66447 into dotnet:main Nov 22, 2023
178 checks passed
jtschuster added a commit to jtschuster/runtime that referenced this pull request Nov 22, 2023
jtschuster added a commit that referenced this pull request Nov 22, 2023
jtschuster added a commit that referenced this pull request Dec 1, 2023
* Revert "Make runtime compatible with VMR cross-builds (#95088)"

This reverts commit ef66447.

* Add support for crossbuilds in the VMR

* Fix typo and remove unused macro

* Set _hostRid to get host arch

* Fix property reference in SourceBuild.props

* Fix _hostArch assignment in
SourceBuild.props
@github-actions github-actions bot locked and limited conversation to collaborators Dec 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants