-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Enable portable cross-arch source-building to unknown architectures. #54031
Conversation
The repository supports building for unknown rids to enable building for non-portable rids. This build configuration is under the '$(PortableBuild)' == 'false' condition. This changes those conditions to '$(DotNetBuildSourceOnly)' == 'true' to enable building a portable configuration for an unknown portable rid. This configuration is used when cross-building for an architecture that is not yet known to the SDK, like linux-ppc64le or linux-s390x.
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.
Assuming this was from a complete find/replace, LGTM
Amazing. Thanks Tom, I knew this was broken but just hadn't had a chance
to look into it.
|
Yes, it is. |
This seems to have caused a regression of dotnet/source-build#3131 Previously I was able to build a source build with |
I think #53528 fixed this. Do you see the issue when building the |
I haven't tested I'll test again when that change gets released. Thanks! |
I'm curious why you need to do a portable build when building for nixpkgs? |
It seemed to be the path of least resistance to get 8.0 working. I'll probably have to take another look at non-portable builds at some point, but:
|
I assume this means you want to provide pre-built binaries for install. For that, you may want to set For the nixpkgs "portable" binaries, you should still use a non-portable |
I think this might be tricky because we'd need variants for both linux and osx (and maybe bsd/windows in the future). I'll make a note to run some tests and open a more appropriate issue if I have trouble. |
The repository supports building for unknown rids to enable building for non-portable rids. This build configuration is under the '$(PortableBuild)' == 'false' condition.
This changes those conditions to '$(DotNetBuildSourceOnly)' == 'true' to enable building a portable configuration for an unknown portable rid. This configuration is used when cross-building for an architecture that is not yet known to the SDK, like linux-ppc64le or linux-s390x.
Fixes dotnet/source-build#3797.
@directhex @ViktorHofer @MichaelSimons ptal.
cc @Swapnali911 @omajid