D.gnu - .di header files ?
- e-t172 (5/5) Jul 16 2007 Hello,
- Frits van Bommel (20/22) Jul 16 2007 When these kinds of questions come up, it's often very helpful to
- e-t172 (2/5) Jul 16 2007 Thanks !
Hello, Is there an equivalent in GDC of the DMD "-H" option to generate header files (.di) ? Regards, e-t172
Jul 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 :).
Jul 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 !
Jul 16 2007