D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6349 - HTOD needs -od or -of switch
Summary: HTOD needs -od or -of switch
Status: RESOLVED WONTFIX
Alias: None
Product: D
Classification: Unclassified
Component: tools (show other issues)
Version: D2
Hardware: Other Windows
: P2 major
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-19 16:28 UTC by Andrej Mitrovic
Modified: 2016-08-27 22:07 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Andrej Mitrovic 2011-07-19 16:28:17 UTC
I can't use my build script for the DWindowsProject to generate headers because it's multithreaded and HTOD works by outputting any converted .h header file to the *current directory*, e.g.:

> htod foo\bar.h

This puts the bar.d file to the *current directory*. I can't just move this newly generated .d header around because my builder is multithreaded and what ends up happening is multiple translated header files with the same name get overwritten with each other. I need -od or -of for HTOD, just like we have in DMD.

I can't use an explicit name because:

> htod foo\bar.h foo\bar.d

Here's what bar.d has in its contents:
/* Converted to D from foo\bar.h by htod */
module foo\bar;

That won't compile.
Comment 1 Andrej Mitrovic 2016-08-27 22:07:02 UTC
dstep (https://github.com/jacob-carlborg/dstep) should be used instead, marking as wontfix.