[GWP-ASan] Respect GWP_ASAN_DEFAULT_ENABLED compile-time macro
authorRoland McGrath <mcgrathr@google.com>
Wed, 18 Nov 2020 17:29:30 +0000 (09:29 -0800)
committerRoland McGrath <mcgrathr@google.com>
Wed, 18 Nov 2020 18:34:42 +0000 (10:34 -0800)
commit7810d837864933b49f5e20a970a8e51ea091fa8e
tree0a11687f116ac9978eb992dd48ae882784484803
parentadf9f64a02838a16d0c6cadfbd089254b126bd22
[GWP-ASan] Respect GWP_ASAN_DEFAULT_ENABLED compile-time macro

If the containing allocator build uses -DGWP_ASAN_DEFAULT_ENABLED=false
then the option will default to false.  For e.g. Scudo, this is simpler
and more efficient than using -DSCUDO_DEFAULT_OPTIONS=... to set gwp-asan
options that have to be parsed from the string at startup.

Reviewed By: hctim

Differential Revision: https://reviews.llvm.org/D91463
compiler-rt/lib/gwp_asan/options.inc