variables are currently always declared as extern __gshared T var;, but on windows when declared as dllimport they also need D's export attribute for them to be recognized by the linker as dllimport. (there is no dllimport attribute in D, but it seems export works here as well)
variables are currently always declared as
extern __gshared T var;
, but on windows when declared as dllimport they also need D'sexport
attribute for them to be recognized by the linker as dllimport. (there is no dllimport attribute in D, but it seemsexport
works here as well)Got a fix for this, will PR with tests for it.