https://issues.dlang.org/show_bug.cgi?id=15031
Issue ID: 15031
Summary: rdmd should force rebuild when --compiler changes
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: tools
Assignee: [email protected]
Reporter: [email protected]
$ cat test.d
version(LDC) static assert(false, "oops");
void main() {}
$ rdmd --compiler=dmd test.d
$ rdmd --compiler=ldc2 test.d
$ touch test.d
$ rdmd --compiler=ldc2 test.d
test.d(1): Error: static assert "oops"
Failed: ["ldc2", "-v", "-o-", "test.d", "-I."]
--