[MLton] MinGW hosted MLton
Matthew Fluet
fluet@cs.cornell.edu
Tue, 3 May 2005 18:20:46 -0400 (EDT)
> On Tue, May 03, 2005 at 04:04:14PM -0400, Matthew Fluet wrote:
> > This patch breaks a self-compile on Linux (and presumably on every
> > non-Windows platform). Although it is clear that
> > Primitive.MLton.Platform.OS.useWindowsProcess must be false on a
> > non-Windows platform (and, hence, usCwait must be false), it is
> > insufficiently optimized, leaving a reference to MLton_Process_cwait in
> > the final object files, which are left unsresolved by libmlton.a on
> > non-Windows platforms.
>
> Eek!
> I did more or less the same thing in reap from mlton/process.sml.
> Sorry about that; I didn't imagine it would affect linux.
I wouldn't have thought so either looking at the code. There are a few
places where we do similar things, mostly with the spawn stuff on windows.
I was able to fix the MLton_Process_cwait problem by lifting the
conditional out of the closure.