MochiLibraries / Biohazrd

A framework for automatically generating binding wrappers for C/C++ libraries
MIT License
60 stars 8 forks source link

Expose target triple information on `TranslatedLibrary` #211

Open PathogenDavid opened 3 years ago

PathogenDavid commented 3 years ago

Right now there isn't an easy way to figure out what platform the translated library is targeting. Generator authors can manually keep track of this, but ideally we'd just expose it directly from Clang.

I don't believe libclang is exposing this, and if it is it's probably only in string form. I'd rather not be in the business of parsing target triples so we should expose llvm::Triple in ClangSharp.Pathogen.

PathogenDavid commented 2 years ago

Once added this should be used to replace InlineExportHelper.__ItaniumExportMode with an automatic check. (Main issue: https://github.com/InfectedLibraries/Biohazrd/issues/209)