How to pass -J switch to compiler via DUB?

rikki cattermole rikki at cattermole.co.nz
Fri Nov 30 11:09:30 UTC 2018


On 01/12/2018 12:05 AM, Andrey wrote:
> Hi,
> How to pass -J switch to compiler via DUB?
> I want to import some text file at compile time:
>> string data = import("vertex.glsl");
> 
> In dub.json:
> "dflags": [
>      "-J=vertex.glsl"
> ]
> 
> The file itself is located on the same level as "dub.json".

stringImportPaths


More information about the Digitalmars-d-learn mailing list