Which command line are you referring to, the compiler command line or the
application command line?
If you want to bake in some options at compile time, there are a few ways
to do it. -DASAN_DEFAULT_OPTIONS=check_initialization_order=true will work,
or you can define the __asan_default_options function somewhere in the
binary like this:
extern "C" const char *__asan_default_options() { return
"check_initialization_order=true"; }
On Mon, Jan 11, 2016 at 5:02 AM, <[email protected]> wrote:
> Hi Everyone,
>
> According to
> http://github.com/google/sanitizers/wiki/AddressSanitizerInitializationOrderFiasco
> :
>
> $ clang++ -fsanitize=address -g tmp/init-order/example/b.cc
> tmp/init-order/example/a.cc
> $ ASAN_OPTIONS=check_initialization_order=true:strict_init_order=true ./a.out
>
>
> We use the tools slightly differently. We want to specify
> 'check_initialization_order=true' on the command line for positive
> confirmation the option exists, for auditing the results of the build
> process to ensure the configuration was utilized, and for archival the of
> the build process during a release cycle.
>
> What is the command line equivalent of 'check_initialization_order=true'?
>
> Thanks in advance.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "address-sanitizer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.