Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
b3827e4f3728b77bd3e60587487ebfc3cc8d901b
rust/tests/run-make/cdylib/foo.rs

14 lines
176 B
Rust
Raw Normal View History

rustc: Allow cdylibs to link against dylibs Previously, rustc mandated that cdylibs could only link against rlibs as dependencies (not dylibs). This commit disables that restriction and tests that it works in a simple case.
2020-01-21 22:47:03 -08:00
#![crate_type = "cdylib"]
extern crate bar;
#[no_mangle]
Update code to account for extern ABI requirement
2020-09-01 17:28:11 -04:00
pub extern "C" fn foo() {
rustc: Allow cdylibs to link against dylibs Previously, rustc mandated that cdylibs could only link against rlibs as dependencies (not dylibs). This commit disables that restriction and tests that it works in a simple case.
2020-01-21 22:47:03 -08:00
bar::bar();
}
#[no_mangle]
Update code to account for extern ABI requirement
2020-09-01 17:28:11 -04:00
pub extern "C" fn bar(a: u32, b: u32) -> u32 {
rustc: Allow cdylibs to link against dylibs Previously, rustc mandated that cdylibs could only link against rlibs as dependencies (not dylibs). This commit disables that restriction and tests that it works in a simple case.
2020-01-21 22:47:03 -08:00
a + b
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1371ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API