<div dir="ltr">Got it, thanks!</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 21, 2016 at 9:08 PM, Dmitri Gribenko <span dir="ltr"><<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Jul 21, 2016 at 8:35 AM, Ankit Agarwal via swift-dev<br>
<<a href="mailto:swift-dev@swift.org">swift-dev@swift.org</a>> wrote:<br>
> Standard library is not built in release mode by default with -R flag in<br>
> build script. Is that intended behaviour?<br>
><br>
> Passing `--no-swift-stdlib-assertions --build-swift-static-stdlib<br>
> --swift-enable-ast-verifier=0` to build script created the build in folder<br>
> `Ninja-ReleaseAssert+stdlib-Release`<br>
<br>
</span>Release/debug flags control the optimization level. The assertions<br>
are controlled with separate flags.<br>
<br>
If you want to build the library for use in production, you need to<br>
enable optimization and turn off assertions with two separate flags.<br>
<span class="HOEnZb"><font color="#888888"><br>
Dmitri<br>
<br>
--<br>
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if<br>
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com">gribozavr@gmail.com</a>>*/<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Ankit<br><br></div>
</div>