Biohazrd icon indicating copy to clipboard operation
Biohazrd copied to clipboard

Expose target triple information on `TranslatedLibrary`

Open PathogenDavid opened this issue 2 years ago • 1 comments

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 avatar Aug 05 '21 17:08 PathogenDavid

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

PathogenDavid avatar Oct 31 '21 22:10 PathogenDavid