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

Relax lib name requirement; fix cross-compilation #15

Merged
merged 1 commit into from
Jan 24, 2018

Conversation

kornelski
Copy link
Contributor

#[cfg(target…)] doesn't behave correctly when doing cross compilation, because the build script runs on the host, giving host's values as the target. The TARGET env var is reliable.

I've also relaxed filename requirements, so that the caller doesn't have to know platform-specific lib name. This matches cc-rs.

@kornelski
Copy link
Contributor Author

ping

@medek medek merged commit ca85bdd into medek:master Jan 24, 2018
@kornelski kornelski deleted the cross branch January 24, 2018 14:12
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.

None yet

2 participants