July 19, 2019
I am trying to use mir-cpuid library, written by il9

Within the library


is used.

I can see that these two new pragmas were incorporated by this merge
(and the author of mir-cpuid library commented how useful this is, in the discussion thread)

The DMD change log from about 1.5 years ago, announces those 2 new pragams

I am trying to use
gdc-9 (Ubuntu 9.1.0-2ubuntu2~18.04) 9.1.0

And my sample code including this library fails at compilation stage, saying that crt_constructor pragma is not known.

I am D newbie, therefore i might not appreciate all nuances.

But with these compilation error,  does it mean that I am running into
a situation where  given D (or in this case Better-C ) library
might be compatible with one compiler (eg DMD), but not with another (GDC) ?

Or is there a switch/workaround that can deployed for DUB that addresses those things during external package assembly stage (things that go into my ~/.dub) folder ?

Another question, is there way to know by looking at given librarie's description or dub.json what compiler it is compatible with?

Thank you in advance