GNOME Bugzilla – Bug 761985
os.name can be wrong in some context
Last modified: 2018-01-25 22:16:02 UTC
When g-ir-scanner is called during a cross-compilation of gobject-introspection, os.name always refers to the build OS but in some context (e.g. when resolving libraries) we really want to use the host OS.
Created attachment 321056 [details] [review] Proposed solution
Created attachment 321058 [details] [review] Proposed solution: the previous one was a wrong patch
Review of attachment 321058 [details] [review]: Hmm. This seems reasonable, I'm just wondering if there's a way we can automatically inherit from Autoconf/cmake's config? Nevertheless, OK to commit as is. (We'll need to document these things somewhere, but don't block on that either)
Pushed attachment 321058 [details] [review] after rebasing it against current master. I've also pushed a commit that adds GI_HOST_OS to the g-ir-scanner man page.