Skip to content

Allow cross-compilation to Linux from Windows #57

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

Merged
merged 1 commit into from
Jul 14, 2017

Conversation

alusch
Copy link
Contributor

@alusch alusch commented Jul 14, 2017

Addresses at least some of the problems with cross-compiling from Windows in #44 (verified that arm-unknown-linux-gnueabihf works).

  1. Remove --build parameter to configure
  2. Replace backslashes in the path to configure with forward slashes
  3. Explicitly set the AR environment variable when calling configure

The second item requires a bit of gymnastics to do the replacement without converting to String as the path may not be representable as UTF-8.

Tested native and arm-unknown-linux-gnueabihf builds on Windows and Linux.

1. Remove --build parameter to configure
2. Replace backslashes in the path to configure with forward slashes
3. Explicitly set the AR environment variable when calling configure
@alexcrichton
Copy link
Member

Thanks! I'll touch this up a bit after merging but looks good to me!

@alexcrichton alexcrichton merged commit 8d1ca9a into rust-lang:master Jul 14, 2017
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