[SAOC 2025]improve importC Weekly Update 1
jmh530
john.michael.hall at gmail.com
Tue Sep 23 12:34:46 UTC 2025
On Monday, 22 September 2025 at 13:02:45 UTC, Emmanuel wrote:
> Hello D community,
>
> The past week, I worked on fixing compilation failures in
> importC involving struct delegated initializer.
>
> [snip]
Thanks for working on import C.
I feel like I would be remiss if I didn't mention the prior
controversy about getting importC to recognize .i and .c files
[1]. Not that I want to derail your plans for the SAOC...
Anyway, the suggestion from Steve was [2] was to have a separate
"-CI" compiler flag to let the compiler know there is a separate
path for C imports. The thread suggested that Walter might be
sympathetic to this approach, but he also suggested an approach
of putting the file on the command line directly [3], which Ian
argued would cause duplicate symbol issues [4]. But I don't think
anyone really came up with an objection to Steve's recommendation.
I think the main requirement coming from the GCC maintainers is
that whatever is done cannot break GCC (or separate compilation).
Is resolving this issue something that can potentially get
attention? It would make working with importC more seamless.
[1] https://github.com/dlang/dmd/issues/20184
[2]
https://github.com/dlang/dmd/pull/14864#issuecomment-1430650577
[3]
https://github.com/dlang/dmd/pull/14864#issuecomment-1432668054
[4]
https://github.com/dlang/dmd/pull/14864#issuecomment-1434341040
More information about the Digitalmars-d
mailing list