summaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-07-21 18:55:08 +0200
committerJussi Pakkanen <jussi.pakkanen@mailbox.org>2025-07-29 21:58:47 +0300
commit394b218be7945d8ea4b291cc7955b9f7e8c12536 (patch)
treefd0cfeabc9470113276079db10ad1994863b7cbc /test cases
parentc15f3cb28f65bf74be6a801e3e6587267466a502 (diff)
downloadmeson-394b218be7945d8ea4b291cc7955b9f7e8c12536.tar.gz
build: allow non-Rust files in non-structured sources
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'test cases')
-rw-r--r--test cases/rust/28 mixed/meson.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/test cases/rust/28 mixed/meson.build b/test cases/rust/28 mixed/meson.build
index b00d8ac88..fac3d466f 100644
--- a/test cases/rust/28 mixed/meson.build
+++ b/test cases/rust/28 mixed/meson.build
@@ -2,5 +2,11 @@
project('mixed', ['cpp', 'rust'])
e1 = executable('mixed', 'hello.rs', 'main.cc')
+e2 = executable('mixed-structured', structured_sources('hello.rs'), 'main.cc')
+
+hello2 = import('fs').copyfile('hello.rs', 'hello2.rs')
+e3 = executable('mixed-structured-gen', structured_sources(hello2), 'main.cc')
test('mixed', e1)
+test('mixed-structured', e2)
+test('mixed-structured-gen', e3)