Disable -Werror when using dub?

Dennis dkorpel at gmail.com
Wed Apr 7 00:17:35 UTC 2021


On Tuesday, 6 April 2021 at 21:30:04 UTC, Brian wrote:
> I may have missed this in the documentation but is it possible 
> to turn off -Werror when building with dub+gdc?

You can add `buildOptions "allowWarnings"` to your dub.sdl, or 
the equivalent to your dub.json. See 
https://dub.pm/package-format-sdl.html


More information about the D.gnu mailing list