[Issue 18042] New: rdmd ignores --exclude when -deps is provided

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 7 07:20:59 UTC 2017


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

          Issue ID: 18042
           Summary: rdmd ignores --exclude when -deps is provided
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: tools
          Assignee: nobody at puremagic.com
          Reporter: timothee.cour2 at gmail.com

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");
}

--


More information about the Digitalmars-d-bugs mailing list