dub
dub copied to clipboard
[Feature Request] Add check action to buildOptions
System information
- dub version: dub 1.29.0
- OS Platform and distribution: Windows 10
- compiler version dmd 2.100
Feature Addition
Add checkaction for dub buildOptions: https://dlang.org/dmd-windows.html#switch-checkaction
Can we set buildOptions from the command-line?
This a good idea but having to do specialized mappings of compiler flags to buildOptions is not scalable. There's always gonna be compiler flags that haven't been mapped. Why don't we provide a way to append compiler flags via --dflags=.. CLI options instead of DFLAGS dub ... which doesn't always work. For instance
DFLAGS=-checkaction=context dub ... fails as in cases such as https://github.com/libmir/mir-algorithm/pull/417#issuecomment-1220319421.
@nordlow dflags can be added per-dependency now, this buildOption suggestion is still a useful one
Do you have a reference to this new feature you're referring to?
@nordlow I meant specifying dflags on dependencies: https://docs.webfreak.org/dub-reference/build_settings/#dependencies