aboutsummaryrefslogtreecommitdiff
path: root/test cases/rust/1 basic
AgeCommit message (Collapse)AuthorFilesLines
14 daysrust: add rust_dynamic_std optionPaolo Bonzini2-1/+9
As an initial implementation, simply adding "-C prefer-dynamic" works for binary crates (as well as dylib and proc-macro that already used it). In the future this could be extended to other crate types. For more information see the comment in the changed file, as well as https://github.com/mesonbuild/meson/issues/8828 and https://github.com/mesonbuild/meson/issues/14215. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2024-03-15compilers: Every compiler can run codeXavier Claessens1-0/+3
Compiling and linking code is part of the Compiler base class, there is no reason it cannot also run executables.
2023-04-21rust: add support for b_ndebugDylan Baker2-1/+13
Rust has a `debug_assert!()` macro, which is designed to be toggled on the command line. It is on by default in debug builds, and off by default in release builds, in cargo. This matches what meson's b_ndebug option does in `if-release` mode.
2022-02-10ninjabackend: fix rust program names with dashesAlyssa Ross3-6/+6
This substitution matches the behaviour of rustc[1] when inferring crate name based on file name. [1]: https://github.com/rust-lang/rust/tree/4e8fb743ccbec27344b2dd42de7057f41d4ebfdd/compiler/rustc_session/src/output.rs#L88
2021-09-24compilers/rust: Add support for clippyDylan Baker2-1/+3
Clippy is a compiler wrapper for rust that provides an extra layer of linting. It's quite popular, but unfortunately doesn't provide the output of the compiler that it's wrapping in it's output, so we don't detect that clippy is rustc. This small patch adds a new compiler class (that is the Rustc class with a different id) and the necessary logic to detect that clippy is in fact rustc) Fixes: #8767
2020-02-25test: merge installed_files.txt into test.jsonDaniel Mensinger2-4/+8
2019-06-21Add Rust generated pdbs to list of installed files.Jussi Pakkanen1-0/+2
2017-05-08rust: Support rust_argsPatrick Griffis1-1/+4
2017-03-29rust: Support executable name differing from source namePatrick Griffis4-2/+10
2016-07-01Fix tests for the new library/executable naming schemeNirbheek Chauhan1-1/+1
Also add new tests for the platform-specific and compiler-specific versioning scheme. A rough summary is: 1. A bug in how run_tests.py:validate_install checked for files has been fixed. Earlier it wasn't checking the install directory properly. 2. Shared libraries are no longer installed in common tests, and the library name/path testing is now done in platform-specific tests. 3. Executables are now always called something?exe in the installed_files.txt file, and the suffix automatically corrected depending on the platform. 4. If a test installs a file called 'no-installed-files', the installed files for that test are not validated. This is required to implement compiler-specific tests for library names/paths such as MSVC vs MinGW 5. The platform-specific file renaming in run_tests.py has been mostly removed since it is broken for shared libraries and isn't needed for static libraries. 6. run_tests.py now reports all missing and extra files. The logic for finding these has been reworked.
2015-10-11Fix Rust to work with 1.3 release. Closes #277.Jussi Pakkanen1-1/+1
2014-06-22Invoke Rust via wrapper script.Jussi Pakkanen2-2/+2
2014-06-18Can compile very basic Rust programs.Jussi Pakkanen3-0/+8