From 1a3bea1ca637bbdc22e5a88ab007d4739985a37a Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Wed, 24 Jun 2026 12:38:42 +0200 Subject: [PATCH] Glean Sym: Run contract version check on iOS too --- glean-core/glean-sym/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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))]