D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 17064 - rdmd -of= broken (cf doesn't understand new dmd -of= syntax)
Summary: rdmd -of= broken (cf doesn't understand new dmd -of= syntax)
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: tools (show other issues)
Version: D2
Hardware: x86 All
: P1 critical
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-07 04:33 UTC by Timothee Cour
Modified: 2021-01-09 22:03 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Timothee Cour 2017-01-07 04:33:28 UTC
was mentioned in https://issues.dlang.org/show_bug.cgi?id=16962 but that bug was crowded with other issues, and this particular issue is still not fixed:

from that bug:
rdmd doesn't seem to understand the new '=' syntax in '-of=' '-od=' even though dmd does (DMD64 D Compiler v2.072.1)

Also there should be some tests 
(https://github.com/dlang/tools/commit/bfbcd086bad634066ba142964823f1689e879aaf doesn't mention anything about of=/od=)
Comment 1 Vladimir Panteleev 2017-01-07 04:35:50 UTC
(In reply to Timothee Cour from comment #0)
> Also there should be some tests 
> (https://github.com/dlang/tools/commit/
> bfbcd086bad634066ba142964823f1689e879aaf doesn't mention anything about
> of=/od=)

Look again.

+    // Test with -od
...
+    // Test with -of
Comment 2 Timothee Cour 2017-01-07 04:55:51 UTC
Where?

I'm seeing: -odsomefile but not -od=somefile, eg:

```
res = execute([rdmdApp, compilerSwitch, "--build-only", "--force", "-lib", "-od" ~ libDir, srcName]);
```
Comment 3 Vladimir Panteleev 2017-01-07 04:57:40 UTC
Oh, I see what you mean now. The problem is with the equal sign.
Comment 4 Timothee Cour 2017-01-07 05:00:09 UTC
ideally, there would be some code sharing with dmd to avoid dmd's flag becoming out of sync with rdmd's flag.
Comment 5 Vladimir Panteleev 2017-01-07 05:01:18 UTC
Ideally, rdmd would be moved into dmd and left as a compatibility wrapper. That would make it much faster, too.
Comment 6 Timothee Cour 2017-09-04 18:31:14 UTC
is there any update on this? it's too bad dmd and rdmd are not in sync
Comment 7 Mathias LANG 2021-01-09 22:03:48 UTC
Fixed by https://github.com/dlang/tools/pull/341