[Issue 18433] rdmd doesn't respect DFLAGS for its cache hash
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 27 22:48:04 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18433
Seb <greensunny12 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |greensunny12 at gmail.com
Summary|rdmd ignores DFLAGS |rdmd doesn't respect DFLAGS
| |for its cache hash
--- Comment #1 from Seb <greensunny12 at gmail.com> ---
Hmm I think the problem is more in DMD not respecting everything from DFLAGS:
However, this has been in master:
cat > foo.d << EOF
void main(){
import std.stdio;
version(Foo)
{
"foo".writeln;
}
else
{
"bar".writeln;
}
}
EOF
```
> dmd -version=Foo foo.d && ./foo
foo
> DFLAGS="-version=Foo" dmd foo.d && ./foo
bar
> DFLAGS="-version=Foo" rdmd --force foo.d
bar
```
(with ~master this correctly yields foo for all commands)
But it looks like rdmd's caching doesn't include a hash of DFLAGS.
```
DFLAGS="-version=Foo" rdmddev foo.d
foo
DFLAGS="-version=Bar" rdmddev foo.d
foo
```
(so I'm renaming this)
--
More information about the Digitalmars-d-bugs
mailing list