Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dlang-bugzilla-migration opened this issue Jan 9, 2021 · 0 comments
Open

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

dlang-bugzilla-migration opened this issue Jan 9, 2021 · 0 comments
Labels
Prio.3.Normal A bug that is neither a blocker nor a regression T.RDMD Issues that apply only to rdmd Type.Bug Things don't work as they were intended to, or the way they were intended to work doesn't make sense

Comments

@dlang-bugzilla-migration

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

@dlang-bugzilla-migration dlang-bugzilla-migration added Type.Bug Things don't work as they were intended to, or the way they were intended to work doesn't make sense Prio.3.Normal A bug that is neither a blocker nor a regression T.RDMD Issues that apply only to rdmd labels Jan 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Prio.3.Normal A bug that is neither a blocker nor a regression T.RDMD Issues that apply only to rdmd Type.Bug Things don't work as they were intended to, or the way they were intended to work doesn't make sense
Projects
None yet
Development

No branches or pull requests

1 participant