Thread overview | |||||
---|---|---|---|---|---|
|
July 16, 2007 .di header files ? | ||||
---|---|---|---|---|
| ||||
Hello, Is there an equivalent in GDC of the DMD "-H" option to generate header files (.di) ? Regards, e-t172 |
July 16, 2007 Re: .di header files ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to e-t172 | 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 Re: .di header files ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Frits van Bommel | 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 !
|
Copyright © 1999-2021 by the D Language Foundation