Is there a way to mark a dub package as linux only?

Ahmet Sait nightmarex1337 at hotmail.com
Tue Sep 27 11:07:50 UTC 2022


On Monday, 26 September 2022 at 20:57:06 UTC, Christian Köstlin 
wrote:
> Or posix only? Or not windows?
>
> Kind regards,
> Christian

Not necessarily a dub solution but you can do something like this:
```d
version(Posix) { }
else
     static assert(0, "Unsupported platform.");
```
This will result in a compiler error while targetting a non-posix 
platform.


More information about the Digitalmars-d-learn mailing list