Otherwise changes to a dependency don't propogatepull/9342/head
parent
bd2fcb268b
commit
73dd21036c
5 changed files with 70 additions and 1 deletions
@ -0,0 +1,5 @@ |
||||
use lib; |
||||
|
||||
pub fn fun() { |
||||
lib::fun(); |
||||
} |
@ -0,0 +1,5 @@ |
||||
use lib2::fun; |
||||
|
||||
fn main() { |
||||
fun(); |
||||
} |
@ -0,0 +1,22 @@ |
||||
project('rlib linkage', 'rust', default_options : ['rust_std=2018']) |
||||
|
||||
lib = static_library( |
||||
'lib', |
||||
'lib.rs', |
||||
rust_crate_type : 'rlib', |
||||
) |
||||
|
||||
lib2 = static_library( |
||||
'lib2', |
||||
'lib2.rs', |
||||
rust_crate_type : 'rlib', |
||||
link_with : lib, |
||||
) |
||||
|
||||
exe = executable( |
||||
'exe', |
||||
'main.rs', |
||||
link_with : lib2, |
||||
) |
||||
|
||||
test('main', exe) |
Loading…
Reference in new issue