Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

@manu-st
Copy link

@manu-st manu-st commented Feb 18, 2016

Add support for compiling the native code via cross compilation.

It uses almost the same setup as CoreCLR/CoreRT.

@stephentoub
Copy link
Member

@jkotas, I believe you reviewed a similar change for coreclr and corert... would you mind taking a peek at this one, too?

# Disable the native build when targeting Windows.

if [ "$__BuildOS" != "$__HostOS" ]; then
if [ "$__BuildOS" != "$__HostOS" ] && [ $__CrossBuild == 0 ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused by this part. We warn that cross-compilation isn't yet supported if CrossBuild isn't set, but if it is set, we don't warn?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rereading it again, I think that I should have left things as they are for the condition, but changed the warning message to be more explicit. It should say something along the lines of:
echo "Warning: compiling native components for a different OS is not yet supported"

Would you agree?

@stephentoub
Copy link
Member

Thanks, @manu-silicon. Replaced by #6585.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants