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 Linux -> MacOS cross-compilation #27

Merged
merged 1 commit into from
Dec 26, 2022

Conversation

Palkovsky
Copy link
Contributor

@Palkovsky Palkovsky commented Dec 20, 2022

When cross-compiling from Linux-OS to MacOS with static linkage, cfg!(target_os = "macos") evaluates to false, even though it should be true. To fix this CARGO_CFG_TARGET_OS environment variable should be used to detect target OS.

@flier flier merged commit 15e963e into flier:master Dec 26, 2022
@flier
Copy link
Owner

flier commented Dec 26, 2022

Thanks

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