Skip to content

Fails to build with dub and gdc #594

@baryluk

Description

@baryluk

dub 1.34.0-1, gdc 13.2.0-7

user@debian:~$ dub run dfmt -- -h
             Package 'dfmt' was not found locally but is available online:
             ---
             Description: Dfmt is a formatter for D source code
             Version: 0.15.1
             ---
Do you want to fetch 'dfmt' now? [Y/n]: y
    Fetching dfmt 0.15.1
             Building package dfmt in /home/user/.dub/packages/dfmt/0.15.1/dfmt/
    Fetching libdparse 0.23.2 (getting selected version)
     Warning Invalid source/import path: /home/user/.dub/packages/dfmt/0.15.1/dfmt/bin
    Starting Performing "debug" build using /usr/bin/gdc for x86_64.
    Building libdparse 0.23.2: building configuration [library]
    Building dfmt 0.15.1: building configuration [application]
   Pre-build Running commands
     Warning Invalid source/import path: /home/user/.dub/packages/dfmt/0.15.1/dfmt/bin
gdc: error: unrecognized command-line option ‘-run’
Error Command failed with exit code 1: /usr/bin/gdc -run "/home/user/.dub/packages/dfmt/0.15.1/dfmt/dubhash.d"
user@debian:~$ cd

If I update to dub bundled with dmd2 2.106.0, then dub run --compiler=gdc dfmt -- -h still fails with same issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions