-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
CI: Cross compile Rust tests #11990
base: master
Are you sure you want to change the base?
CI: Cross compile Rust tests #11990
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very neat!
if self.is_cross: | ||
output_name += '_cross' | ||
# Required for Windows, allowed everywhere else. | ||
output_name += '.exe' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😂 How did this ever work? I was absolutely sure we ran rust tests on Windows, the toolchain is installed in run.ps1...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we do: https://dev.azure.com/jussi0947/c10d67cb-aecc-4964-a931-a8b100dcbd57/_apis/build/builds/18167/logs/24. The .exe
requirement could be only with wine maybe?
33e4b52
to
8c92728
Compare
74d1aa1
to
566cc06
Compare
On Windows executables must have .exe suffix. On all other platforms .exe is allowed. Always use it, like clike compiler sanity check already does.
This fix running Windows executables that links to Rust STD both natively and under Wine, as well as in devenv.
rust: Require `native: true` for `proc-macro` targets and allow linking into targets for other platforms proc-macros are basically compiler extensions and must be compiled for the build machine so that the compiler can load and execute it at runtime. Without this, cross-compilation of targets that use proc-macro dependencies is going to fail. Fixes mesonbuild#11702
No description provided.