Navigation Menu

Skip to content

Commit

Permalink
wasm32: Inline a trivial function in libstd
Browse files Browse the repository at this point in the history
No need for this to actually show up in optimized non-LTO executables!
  • Loading branch information
alexcrichton committed Nov 1, 2018
1 parent f6e9a6e commit 49ec935
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/liballoc_system/lib.rs
Expand Up @@ -405,6 +405,7 @@ mod platform {

#[cfg(not(target_feature = "atomics"))]
mod lock {
#[inline]
pub fn lock() {} // no atomics, no threads, that's easy!
}
}

0 comments on commit 49ec935

Please sign in to comment.