forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#121216 - madsmtm:fix-108825, r=wesleywiser
Always emit `native-static-libs` note, even if it is empty Fixes rust-lang#108825.
- Loading branch information
Showing
3 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Test that linking a no_std application still outputs the | ||
// `native-static-libs: ` note, even though it's empty. | ||
//@ compile-flags: -Cpanic=abort --print=native-static-libs | ||
//@ build-pass | ||
//@ ignore-wasm | ||
//@ ignore-cross-compile This doesn't produce any output on i686-unknown-linux-gnu for some reason? | ||
|
||
#![crate_type = "staticlib"] | ||
#![no_std] | ||
|
||
#[panic_handler] | ||
fn panic(_info: &core::panic::PanicInfo) -> ! { | ||
loop {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
note: Link against the following native artifacts when linking against this static library. The order and any duplication can be significant on some platforms. | ||
|
||
note: native-static-libs: | ||
|