Skip to contentSkip to conversation

rust: hwcore: add chardev symbols to integration tests

PATCH In review Paolo Bonzini 2 participants 2 messages Jan 14

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rust: hwcore: add chardev symbols to integration tests

Even though they are not used, rustc does not elide its symbols on msys2. This causes a linker error.

---
Yet another tiny bit. For the remaining issue, which is another linker error in the same test due to missing system/memory.c, I'm posting (after retesting) a patch series from Marc-André that is a bit bigger but was going to be submitted anyway.

 rust/hw/core/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rust/hw/core/meson.build +1 -1
index fa1765a2302..942ee9cdacf 100644
@@ -73,7 +73,7 @@ test('rust-hwcore-rs-integration',
         override_options: ['rust_std=2021', 'build.rust_std=2021'],
         rust_args: ['--test'],
         install: false,
-        dependencies: [common_rs, hwcore_rs, bql_rs, migration_rs, util_rs]),
+        dependencies: [chardev_rs, common_rs, hwcore_rs, bql_rs, migration_rs, util_rs]),
     args: [
         '--test', '--test-threads', '1',
         '--format', 'pretty',
Signature · 1 line
2.52.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Paolo Bonzini

Even though they are not used, rustc does not elide its symbols on msys2. This causes a linker error.

Quoted 26 lines

---
Yet another tiny bit. For the remaining issue, which is another linker error in the same test due to missing system/memory.c, I'm posting (after retesting) a patch series from Marc-André that is a bit bigger but was going to be submitted anyway.

 rust/hw/core/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rust/hw/core/meson.build +1 -2
index fa1765a2302..942ee9cdacf 100644
@@ -73,7 +73,7 @@ test('rust-hwcore-rs-integration',
         override_options: ['rust_std=2021', 'build.rust_std=2021'],
         rust_args: ['--test'],
         install: false,
-        dependencies: [common_rs, hwcore_rs, bql_rs, migration_rs, util_rs]),
+        dependencies: [chardev_rs, common_rs, hwcore_rs, bql_rs, migration_rs, util_rs]),
     args: [
         '--test', '--test-threads', '1',
         '--format', 'pretty',
--

2.52.0

Signature · 1 line
Marc-André Lureau