<div dir="ltr"><div style="font-size:12.8px">To quote Reid's response from another group:</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">"""</div><div style="font-size:12.8px"><span style="font-size:12.8px">If you want to bake in some options at compile time, there are a few ways to do it. -DASAN_DEFAULT_OPTIONS=check_</span><span style="font-size:12.8px">initialization_order=true will work, or you can define the __asan_default_options function somewhere in the binary like this:</span><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">extern "C" const char *__asan_default_options() { return "check_initialization_order=true"; }</div><div style="font-size:12.8px">"""</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 11, 2016 at 2:53 AM, Jeffrey Walton via cfe-users <span dir="ltr"><<a href="mailto:cfe-users@lists.llvm.org" target="_blank">cfe-users@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Everyone,<br>
<br>
We have a C++ library and a test script that grinds though various<br>
configurations. It include various sanitizers. The script is a<br>
security gate, and the self tests must pass for a release.<br>
<br>
I want to add the Initialization Order Fiasco sanitizer as a command<br>
line option, and not a envar export. There are some reasons for it,<br>
like a positive confirmation the option exists and explicit invocation<br>
of the checker.<br>
<br>
How do I enable Initialization Order Fiasco sanitizer from the command line?<br>
<br>
Thanks in advance.<br>
_______________________________________________<br>
cfe-users mailing list<br>
<a href="mailto:cfe-users@lists.llvm.org">cfe-users@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Alexey Samsonov<br><a href="mailto:vonosmas@gmail.com" target="_blank">vonosmas@gmail.com</a></div></div>
</div>