Bug 11997 – rdmd should search its binary path for the compiler
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-01-25T14:47:28Z
Last change time
2018-04-10T18:41:00Z
Keywords
pull
Assigned to
No Owner
Creator
Martin Nowak
Comments
Comment #0 by code — 2014-01-25T14:47:28Z
It should be possible to use 'rdmd' directly from the dmd.zip release.
Currently one always has to specify the full path to the compiler.
dmd2/linux/bin64/rdmd --compiler=dmd2/linux/bin64/dmd
Comment #1 by dbugz — 2017-06-12T19:20:07Z
Just ran into this now that ldc is starting to ship rdmd with the 1.3 beta2 release. What's weird is even if I add dmd's path from the unpacked zip to my PATH, rdmd can't find it, though I can call dmd just fine. rdmd only works without --compiler if dmd is installed in the system path.
I can submit a PR so that rdmd always prepends its path to the defaultCompiler, so that the one next to it is the one tried. Let me know if you like that solution.
Comment #2 by dlang-bugzilla — 2017-07-12T23:30:49Z