8000 fix: build libcef_dll_wrapper with target arch by montyc1999 · Pull Request #108 · tauri-apps/cef-rs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: build libcef_dll_wrapper with target arch #108

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
May 29, 2025

Conversation

montyc1999
Copy link
Contributor

Cross compiling for x86_64 does not work on my arm64 mac because libcef_dll_wrapper is built with the wrong architecture:

$ rustup target add x86_64-apple-darwin
$ cargo build -p cef-dll-sys --target x86_64-apple-darwin

$ lipo -info ./target/x86_64-apple-darwin/debug/build/cef-dll-sys-f52b2fa789d9b239/out/build/libcef_dll_wrapper/libcef_dll_wrapper.a
Non-fat file: libcef_dll_wrapper.a is architecture: arm64

This is because CEF's cmake configuration uses CMAKE_HOST_SYSTEM_PROCESSOR to determine architecture, unless a PROJECT_ARCH variable is defined.

@montyc1999 montyc1999 force-pushed the fix-cross-compilation branch 3 times, most recently from b5e0021 to 255468a Compare May 19, 2025 15:09
@montyc1999 montyc1999 force-pushed the fix-cross-compilation branch from 255468a to 7ac6476 Compare May 19, 2025 15:12
@wravery wravery merged commit 2aa4714 into tauri-apps:dev May 29, 2025
3 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
0