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: use TARGET env var instead of cfg_aliases so cross compiling works #1217

Merged
merged 8 commits into from
Apr 15, 2024

Conversation

lucasfernog
Copy link
Member

I've been facing random issues when cross compiling wry. When running cargo xwin build --target x86_64-pc-windows-msvc, sometimes the build script enables the gtk alias. So I thought its better to detect the target platform manually with the TARGET env var.

@lucasfernog lucasfernog requested a review from a team as a code owner April 9, 2024 02:08
amrbashir
amrbashir previously approved these changes Apr 9, 2024
@wusyong
Copy link
Member

wusyong commented Apr 9, 2024

android target will fail to build it seems.

@lucasfernog
Copy link
Member Author

fix pushed

@lucasfernog lucasfernog requested a review from amrbashir April 14, 2024 11:11
@@ -112,6 +112,7 @@ impl InnerWebView {
pl_attrs: super::PlatformSpecificWebViewAttributes,
_web_context: Option<&mut WebContext>,
) -> Result<Self> {
println!("N");
Copy link
Contributor

Choose a reason for hiding this comment

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

👀

@amrbashir amrbashir merged commit f0e82d3 into dev Apr 15, 2024
13 checks passed
@amrbashir amrbashir deleted the fix/cfg branch April 15, 2024 07:06
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.

4 participants