> On 6 Mar 2017, at 12:21, Walter Bright <[email protected]> wrote:
> 
> I don't see a need to compile OSX executables from Windows, Linux or FreeBSD. 
> I don't recall it ever coming up.
> 
> DMD is not currently set up to cross compile that way, because the object 
> file and library file code is a compile time switch. Making O-C a run time 
> switch would still not make it a cross compiler.
> 
> The stub file is still pointless extra complexity, though, and using a 
> compile time version will enable it to be merged with the non-stub file. It'd 
> be a nice improvement.

Some of the checks are already runtime checks [1]. Which was changed in this PR 
[2]. Keep in mind that LDC is a cross-compiler (not sure about GDC).

[1] https://github.com/dlang/dmd/blob/master/src/ddmd/objc.d#L231
[2] https://github.com/dlang/dmd/pull/5641

-- 
/Jacob Carlborg
_______________________________________________
dmd-internals mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-internals

Reply via email to