diff --git a/glean-core/glean-sym/src/lib.rs b/glean-core/glean-sym/src/lib.rs index 2c17f29652..c260cd7528 100644 --- a/glean-core/glean-sym/src/lib.rs +++ b/glean-core/glean-sym/src/lib.rs @@ -77,7 +77,9 @@ macro_rules! library_binding { pub fn load() -> std::io::Result { // 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))]