dlang-community / SDLang-D

An SDLang (Simple Declarative Language) library for D
http://sdlang.org
Other
120 stars 21 forks source link

Building with Dub produces package format warnings #5

Closed ColdenCullen closed 9 years ago

ColdenCullen commented 10 years ago

The following is printed when building with dub 0.9.21:

## Warning for package sdlang-d ##

The following compiler flags have been specified in the package description
file. They are handled by DUB and direct use in packages is discouraged.
Alternatively, you can set the DFLAGS environment variable to pass custom flags
to the compiler, or use one of the suggestions below:

-wi: Use the "buildRequirements" field to control warning behavior

## Warning for package sdlang-d, configuration unittest ##

The following compiler flags have been specified in the package description
file. They are handled by DUB and direct use in packages is discouraged.
Alternatively, you can set the DFLAGS environment variable to pass custom flags
to the compiler, or use one of the suggestions below:

-debug: Call dub with --build=debug
-unittest: Call dub with --build=unittest
Abscissa commented 10 years ago

The first one should already be fixed by #4.

For the second one, I need to check which version of dub first permitted the "debugMode" option in "buildOptions" (note to self: I should also add the "warnings" build option, I had thought "allowWarnings" already implied it). I don't want to break the lib for anyone not on the absolute latest versions of dub.

Sigh I really, really wish dub didn't insist on reinventing the entire compiler interface and complain about every attempt to get around it. Both LDC and GDC have wrappers that accept DMD-style flags, so this extra abstraction really shouldn't be needed in the first place.