D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 18042 - rdmd ignores --exclude when -deps is provided
Summary: rdmd ignores --exclude when -deps is provided
Status: RESOLVED MOVED
Alias: None
Product: D
Classification: Unclassified
Component: tools (show other issues)
Version: D2
Hardware: x86 Mac OS X
: P1 major
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-07 07:20 UTC by Timothee Cour
Modified: 2021-01-09 11:09 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Timothee Cour 2017-12-07 07:20:59 UTC
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");
}
Comment 1 Jonathan Marler 2018-01-10 03:07:11 UTC
Just wanted to make a note that we should retest this bug once this PR is integrated.

https://github.com/dlang/tools/pull/271
Comment 2 Jonathan Marler 2018-01-16 17:37:57 UTC
Fixed with: https://github.com/dlang/tools/pull/271
Comment 3 Jonathan Marler 2018-01-20 02:23:24 UTC
https://github.com/dlang/tools/pull/271 was reverted
Comment 4 Mathias LANG 2021-01-09 11:09:44 UTC
Moved to: https://github.com/dlang/tools/issues/422