<div dir="ltr">To generate native code for smp-enabled runtime using erlc is easy. I can't seem to make it happen for smp disabled runtime.<br><br>If I start up Erlang with -smp disable and compile from within Erlang, then it does what I want (creates a natively-compiled beam for non-smp use).<br>
<br>$ erl -smp disable<br>1> c(mymodule, [native, {hipe, o3}])<br>{ok,mymodule}<br>8> <br><br>But this is very inconvenient if a build system is created that relies on erlc. Is there a better way?<br><br></div>