diff options
Diffstat (limited to 'src/core/config/common.pri')
-rw-r--r-- | src/core/config/common.pri | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/config/common.pri b/src/core/config/common.pri index d8a4fa181..d9dd7d7fd 100644 --- a/src/core/config/common.pri +++ b/src/core/config/common.pri @@ -62,3 +62,15 @@ CONFIG(debug, debug|release) { # Compiling with -Os makes a huge difference in binary size optimize_size: gn_args += optimize_for_size=true + +# We don't want to apply sanitizer options to the build tools (GN, dict convert, etc). +!host_build { + sanitizer: gn_args += sanitizer_keep_symbols=true + sanitize_address: gn_args += is_asan=true + sanitize_thread: gn_args += is_tsan=true + sanitize_memory: gn_args += is_msan=true + # rtti is required for a specific check of ubsan, -fsanitize=vptr, which uses the runtime + # type information to check that correct derived objects are assigned to base pointers. Without + # rtti, linking would fail at build time. + sanitize_undefined: gn_args += is_ubsan=true use_rtti=true +} |