<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jul 27, 2013 at 11:53 AM, Peter Wang <span dir="ltr"><<a href="mailto:novalazy@gmail.com" target="_blank">novalazy@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Sat, 27 Jul 2013 01:39:50 +0100, Mark Green <<a href="mailto:mgreen@brookes.ac.uk">mgreen@brookes.ac.uk</a>> wrote:<br>

> Hi,<br>
><br>
> What's the easiest way to add a new command line option to mmc? I have been<br>
> trying to deal with my Erlang build problem by modifying<br>
> compile_target_code.m to pass full paths to erlc, but I would like to make<br>
> this behavior optional and I cannot find the part of the code that converts<br>
> from strings on the command line to atoms that are looked up via<br>
> lookup_bool_option.<br>
<br>
</div></div>In options.m.  For a quick test, you can make use of an existing<br>
string option "--experiment".<br>
<br>
Which paths are problematic?<br></blockquote><div><br></div><div>I'm not sure about the problem that Mark has encountered, but one issue we definitely have</div><div>with the erlang grade on Windows is that the values of MERCURY_ERLANG_{COMPILER,INTERPRETER}</div>
<div>contains spaces if the OTP is installed in the default location (in Program Files).  This breaks compilation of</div><div>the standard library. We should take the basename of the value returned by the configuration tests in this case, </div>
<div>as we do for the Java tools in the same situation  (I'll commit a change that does this tomorrow.)</div><div><br></div><div>Cheers,</div><div>Julien.</div><div><br></div><div><br></div><div><br></div><div> </div>
</div></div></div>