Thread overview
.di header files ?
Jul 16, 2007
e-t172
Jul 16, 2007
Frits van Bommel
Jul 16, 2007
e-t172
July 16, 2007
Hello,

Is there an equivalent in GDC of the DMD "-H" option to generate header files (.di) ?

Regards,

e-t172
July 16, 2007
e-t172 wrote:
> Is there an equivalent in GDC of the DMD "-H" option to generate header files (.di) ?

When these kinds of questions come up, it's often very helpful to inspect the source of the gdmd script:
---
  -H             generate 'header' file
  -Hdhdrdir      write 'header' file to hdrdir directory
  -Hffilename    write 'header' file to filename
[....]
    } elsif ( $arg =~ m/^-H$/ ) {
        push @out, '-fintfc';
    } elsif ( $arg =~ m/^-Hd(.*)$/ ) {
        push @out, "-fintfc-dir=$1";
    } elsif ( $arg =~ m/^-Hf(.*)$/ ) {
        push @out, "-fintfc-file=$1";
---

So with regular gdc, "-fintfc" should do it. "-fintfc-dir=some/path" specifies a directory to put *.di files in, "-fintfc-file=something.di" specifies a specific filename to use.

Or you can just use gdmd directly if you're most comfortable with the DMD command-line options style :).
July 16, 2007
Frits van Bommel a écrit :
> So with regular gdc, "-fintfc" should do it. "-fintfc-dir=some/path" specifies a directory to put *.di files in, "-fintfc-file=something.di" specifies a specific filename to use.

Thanks !