Skip to content

[Feature Request] Add check action to buildOptions #2296

Open

Description

@MrcSnm

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

Activity

  1. nordlow commented on Aug 19, 2022

    @nordlow
    Contributor

    Can we set buildOptions from the command-line?

  2. nordlow commented on Aug 19, 2022

    @nordlow
    Contributor

    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 libmir/mir-algorithm#417 (comment).

  3. WebFreak001 commented on Feb 13, 2023

    @WebFreak001
    Member

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

  4. nordlow commented on Feb 13, 2023

    @nordlow
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions