Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion glean-core/glean-sym/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ macro_rules! library_binding {
pub fn load() -> std::io::Result<Self> {
// On iOS we compile it all together and can look up symbols without loading a library
let $localname: libloading::Library = libloading::os::unix::Library::this().into();
Ok(GleanSym { $($load)* _library: $localname })
let handle = GleanSym { $($load)* _library: $localname };
handle.check()?;
Ok(handle)
}

#[cfg(not(unix))]
Expand Down