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
Comment #3 by github-bugzilla — 2017-07-17T04:39:41Z
Commits pushed to master at https://github.com/dlang/tools https://github.com/dlang/tools/commit/f7e6f4ed925f6a8f97b4c0f02cfce2620489357a Fix Issue 11997 - rdmd should search it's binary path for the compiler https://github.com/dlang/tools/commit/ee59ec92912cf98f4167a6802383804cb8d7aa9a Merge pull request #250 from joakim-noah/rdmd Fix Issue 11997 - rdmd should search it's binary path for the compiler merged-on-behalf-of: Vladimir Panteleev <[email protected]>
Comment #4 by github-bugzilla — 2017-08-10T11:40:53Z
Commits pushed to newCTFE at https://github.com/dlang/tools https://github.com/dlang/tools/commit/f7e6f4ed925f6a8f97b4c0f02cfce2620489357a Fix Issue 11997 - rdmd should search it's binary path for the compiler https://github.com/dlang/tools/commit/ee59ec92912cf98f4167a6802383804cb8d7aa9a Merge pull request #250 from joakim-noah/rdmd
Comment #5 by github-bugzilla — 2017-08-16T13:22:45Z
Commits pushed to stable at https://github.com/dlang/tools https://github.com/dlang/tools/commit/f7e6f4ed925f6a8f97b4c0f02cfce2620489357a Fix Issue 11997 - rdmd should search it's binary path for the compiler https://github.com/dlang/tools/commit/ee59ec92912cf98f4167a6802383804cb8d7aa9a Merge pull request #250 from joakim-noah/rdmd
Comment #6 by github-bugzilla — 2018-04-10T18:41:00Z
Commit pushed to master at https://github.com/dlang/tools https://github.com/dlang/tools/commit/2e516ab51a5d1c0329312aa56960281c95e57a33 rdmd: Append binExt to the compiler path to check from the same directory Fixes using the compiler from rdmd's directory (issue 11997) on Windows.