www.digitalmars.com         C & C++   DMDScript  

D.gnu - .di header files ?

reply e-t172 <idontlikespam nospam.com> writes:
Hello,

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

Regards,

e-t172
Jul 16 2007
parent reply Frits van Bommel <fvbommel REMwOVExCAPSs.nl> writes:
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 :).
Jul 16 2007
parent e-t172 <idontlikespam nospam.com> writes:
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 !
Jul 16 2007