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

Timothee Cour <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #5 from Timothee Cour <[email protected]> ---
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");}

--

Reply via email to