.di header files ?
Frits van Bommel
fvbommel at REMwOVExCAPSs.nl
Mon Jul 16 10:15:29 PDT 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 :).
More information about the D.gnu
mailing list