How can I restrict a library to be only included under a certain OS?

solidstate1991 laszloszeremi at outlook.com
Tue Mar 28 21:10:08 UTC 2023


I added this line to my SDLang formatted dub build file:

```
dependency "libx11" version="0.0.1" platform="posix"
```

Yet it's included even on Windows, even if I change it to "linux".

Since there's a fatal bug in the library that disallows it to be 
built, I'll be leaving it out for now, and instead move onto 
something else, or try to issue a correction.


More information about the Digitalmars-d-learn mailing list