summaryrefslogtreecommitdiff
path: root/test cases/rust/27 objects/lib1-dylib.rs
AgeCommit message (Collapse)Author
2025-09-22rust: let doctests pick objects from dependenciesPaolo Bonzini
If a depedency includes object files, they have to be added to the doctest. However, NinjaBackend was not running flatten_object_list on the doctest. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-08-17ninjabackend: pass objects to doctestsPaolo Bonzini
Fix my misunderstanding of the code before commit aede231ef ("ninjabackend: pass objects to generate_rust_target from non-Rust sources", 2025-07-29). Object files were added by get_rust_compiler_deps_and_args() to both the main target and the doctest command lines: objs, od = self.flatten_object_list(target) for o in objs: args.append(f'-Clink-arg={o}') deps.append(o) therefore they now need to be passed as the final argument of get_rust_compiler_deps_and_args() for both command lines as well. Failure to do so causes problems building doctests when the main target has objects as well. Add a regression test as well. Fixes: #14897 Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-04-04rust: add shared library testcase for "objects"Paolo Bonzini
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>