Skip to content

Commit c43afcb

Browse files
committed
Do not link psm_s when asm feature is disabled
1 parent 547807f commit c43afcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

psm/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ macro_rules! extern_item {
5656
// NB: this could be nicer across multiple blocks but we cannot do it because of
5757
// https://github.com/rust-lang/rust/issues/65847
5858
extern_item! { {
59-
#![link(name="psm_s")]
59+
#![cfg_attr(asm, link(name="psm_s"))]
6060

6161
#[cfg(asm)]
6262
fn rust_psm_stack_direction() -> u8;

0 commit comments

Comments
 (0)