dub icon indicating copy to clipboard operation
dub copied to clipboard

[Feature Request] Add check action to buildOptions

Open MrcSnm opened this issue 3 years ago • 2 comments
trafficstars

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

MrcSnm avatar Jul 10 '22 20:07 MrcSnm

Can we set buildOptions from the command-line?

nordlow avatar Aug 19 '22 09:08 nordlow

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 avatar Aug 19 '22 09:08 nordlow

@nordlow dflags can be added per-dependency now, this buildOption suggestion is still a useful one

WebFreak001 avatar Feb 13 '23 12:02 WebFreak001

Do you have a reference to this new feature you're referring to?

nordlow avatar Feb 13 '23 14:02 nordlow

@nordlow I meant specifying dflags on dependencies: https://docs.webfreak.org/dub-reference/build_settings/#dependencies

WebFreak001 avatar Feb 13 '23 14:02 WebFreak001