diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2025-03-17 00:32:59 +0100 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2025-04-03 11:49:37 +0300 |
commit | 5d9b9739ddc34a9db966a0034ab5ffb652ec4f56 (patch) | |
tree | 0dcef1c633ea9b7fc3a4139a6d58ec7b62a9be18 /docs/markdown | |
parent | 95d7fac30a9955fd1f846a650f2bfe0db4b261f8 (diff) | |
download | meson-5d9b9739ddc34a9db966a0034ab5ffb652ec4f56.zip meson-5d9b9739ddc34a9db966a0034ab5ffb652ec4f56.tar.gz meson-5d9b9739ddc34a9db966a0034ab5ffb652ec4f56.tar.bz2 |
compilers/rust: fix sanity_check for Windows targets
Windows toolchains append `.exe` to executables. When cross-compiling on
Linux, attempting to run `./rusttest` will not execute the generated
`rusttest.exe`.
Fix this by always appending `.exe`, which is a valid filename on all
supported platforms. This is what the `CLikeCompiler` class does too.
While reviewing `rust.py`, there are opportunities for improvements and
better unification with the rest of the Meson code. However, this commit
focuses on fixing cross-compilation with minimal changes.
Fixes: #14374
Diffstat (limited to 'docs/markdown')
0 files changed, 0 insertions, 0 deletions