[m-rev.] for review: bootstrap with MSVC as C compiler.
Peter Ross
pro at missioncriticalit.com
Fri Nov 1 03:07:23 AEDT 2002
fjh wrote:
> On 24-Oct-2002, Peter Ross <pro at missioncriticalit.com> wrote:
> >
> > diff -u trace/mercury_trace_source.c trace/mercury_trace_source.c
> > --- trace/mercury_trace_source.c
> > +++ trace/mercury_trace_source.c
> > @@ -344,10 +344,17 @@
> > */
> > #ifdef MR_HAVE_SLEEP
> > sleep(1);
> > -#else
> > +#elif MR_HAVE_CAPITAL_S_SLEEP
> > Sleep(1000);
> > +#else
> > + /*
> > + ** busy-wait for a few billion cycles, which should
hopefully
> > + ** take a second or more.
> > + */
> > + volatile int i;
> > + for (i = 0; i < 100000000; i++)
>
> Now that I think about it a bit more: better make that `long' rather
than
> `int', just in case we ever try porting to a system with 16-bit ints.
>
Done.
> > +++ README.MS-VisualC 24 Oct 2002 14:50:03 -0000
> > @@ -18,6 +18,8 @@
> > configure defaults to using the hlc.gc grade as this is the only
grade
> > currently supported.
> >
> > +Also ensure that the environment variable TMPDIR points to a valid
directory.
>
> Which path name format should be used -- Unix or Windows?
> The README needs to say which one it is.
>
Hmmm good question, I ended up just setting it to ".". I think it has
to be in Windows format with each of the "\" escaped, or unix format but
where the root of the path is c:\. I will just recommend setting TMPDIR
to be ".".
> (BTW, which program needs TMPDIR set?)
>
The compiler, when it calls io__make_temp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list