Skip to content

rdmd ignores --exclude when -deps is provided #422

@dlang-bugzilla-migration

Description

Transferred from: https://issues.dlang.org/show_bug.cgi?id=18042

User @timotheecour reported (2017-Dec-07 07:20:59):

adding -deps inside rdmd command below will print all dependencies inside bar.foo.fun; it shouldn't because we passed --exclude=bar

./setup.sh:

build_lib(){
        dmd -of=libfoo.a -lib bar/foo.d
}

build_main(){
        exe=./main

        rdmd --force -v --build-only -of$exe -L-lfoo -L-L. --exclude=bar main.d
        $exe
}

./main.d:

import bar.foo;
void main(){ fun(); }

./bar/foo.d:

module bar.foo;

void fun(){
        import std.stdio;
        writeln("ok1");
}

User @marler8997 responded (2018-Jan-10 03:07:11):

Just wanted to make a note that we should retest this bug once this PR is integrated.

#271

User @marler8997 responded (2018-Jan-16 17:37:57):

Fixed with: #271

User @marler8997 responded (2018-Jan-20 02:23:24):

#271 was reverted

Metadata

Metadata

Assignees

No one assigned

    Labels

    Prio.3.NormalA bug that is neither a blocker nor a regressionT.RDMDIssues that apply only to rdmdType.BugThings don't work as they were intended to, or the way they were intended to work doesn't make sense

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions