[Issue 6431] [RDMD] Modifying a library doesn't trigger a rebuild

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 7 06:22:26 UTC 2017


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

Timothee Cour <timothee.cour2 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timothee.cour2 at gmail.com

--- Comment #5 from Timothee Cour <timothee.cour2 at gmail.com> ---
reopening as i just bumped on this issue
rdmd build 20171126
DMD64 D Compiler v2.077.0

build_lib
build_main
edit bar/foo.d
build_lib
build_main => doesn't rebuild

./setup.sh:
## rdmd doesn't rebuild if a dependent library changes
build_lib(){
        dmd -of=libfoo.a -lib bar/foo.d
}

build_main(){
        exe=./main
        rdmd --build-only -of$exe -Llibfoo.a --exclude=bar main.d
        $exe
}


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


./bar/foo.d:
module bar.foo;
import std.stdio;
void fun(){writeln("ok4");}

--


More information about the Digitalmars-d-bugs mailing list