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

Fix cross-compiling with dylib feature #85

Merged
merged 1 commit into from
Nov 2, 2024

Conversation

jschwe
Copy link
Member

@jschwe jschwe commented Nov 2, 2024

When cross-compiling the host OS may be different from the target OS. E.g. one may be compiling for Linux on a Windows machine. In build-scripts one needs to reed the
TARGET environment variables that cargo sets,
since build scripts themselves are always compiled for the host platform.

I came across this while investigating a different issue.

@jschwe
Copy link
Member Author

jschwe commented Nov 2, 2024

Looks like CI is failing on main too, so probably that would need to be fixed first.

@sagudev
Copy link
Member

sagudev commented Nov 2, 2024

Looks like CI is failing on main too, so probably that would need to be fixed first.

Not again.

When cross-compiling the host OS may be different from the target OS.
E.g. one may be compiling for Linux on a Windows machine.
In build-scripts one needs to reed the
`TARGET` environment variables that cargo sets,
since build scripts themselves are always compiled for the host platform.
@sagudev sagudev added this pull request to the merge queue Nov 2, 2024
Merged via the queue into servo:main with commit 3432d2b Nov 2, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants