Hello Rustacean,

I’ll go straight to the point: I’m building a small FFI library which needs
to be called
from a C++ x86 project. I cannot change the arch of the latter (it’s Doom3,
and relies on x86 arch entirely).
Thus linker reject my Rust library as “file was built for x86_64 which is
not the architecture being linked (i386)”.

Thus my question: It’s possible (without rebuilding the toolchain) to
instruct cargo to generate a x86 dylib?
Something like (fantasy syntax):

cargo build —arch-type=x86

Thanks in advance!
Alfredo
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to