[dmd-internals] Refactoring of the Objective-C integration

Jacob Carlborg via dmd-internals dmd-internals at puremagic.com
Sun Mar 5 03:57:44 PST 2017


> On 5 Mar 2017, at 12:52, Walter Bright via dmd-internals <dmd-internals at puremagic.com> wrote:
> 
> We already do this for libelf.d, etc. I don't recall it ever being an issue.
> 
> Target dependent object file generation does not use a runtime switch, either.
> 
> The stub file can be merged with the non-stub file, and use a compile time version conditional. No need for runtime dispatch.

How do you see cross-compiling working when it’s a compile time decision (compiling the compiler)? As far as I understand, it only works for LDC because they’re not using the same makefiles as DMD does.

-- 
/Jacob Carlborg




More information about the dmd-internals mailing list