wilzbach / tools-test

1 stars 0 forks source link

HTOD needs -od or -of switch #62

Closed wilzbach closed 8 years ago

wilzbach commented 13 years ago

Note: the issue was created automatically migrated from https://issues.dlang.org

Original bug ID: BZ#6349 From: Andrej Mitrovic <andrej.mitrovich@gmail.com> Reported version: D2

wilzbach commented 13 years ago

Comment author: Andrej Mitrovic <andrej.mitrovich@gmail.com>

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.

wilzbach commented 8 years ago

Comment author: Andrej Mitrovic <andrej.mitrovich@gmail.com>

dstep (https://github.com/jacob-carlborg/dstep) should be used instead, marking as wontfix.