diff options
Diffstat (limited to 'samples')
-rw-r--r-- | samples/BUILD.gn | 3 | ||||
-rw-r--r-- | samples/pdfium_test.cc | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/samples/BUILD.gn b/samples/BUILD.gn index 11bc9bab38..23f4d0ca56 100644 --- a/samples/BUILD.gn +++ b/samples/BUILD.gn @@ -30,6 +30,9 @@ config("pdfium_samples_config") { if (pdf_use_skia) { defines += [ "PDF_ENABLE_SKIA" ] } + if (is_asan) { + defines += [ "PDF_ENABLE_ASAN" ] + } if (use_coverage && is_clang) { cflags += [ "--coverage", diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc index 1e0a5be50e..a0afd4d09c 100644 --- a/samples/pdfium_test.cc +++ b/samples/pdfium_test.cc @@ -893,6 +893,11 @@ static void ShowConfig() { config.append("XFA"); maybe_comma = ","; #endif // PDF_ENABLE_XFA +#ifdef PDF_ENABLE_ASAN + config.append(maybe_comma); + config.append("ASAN"); + maybe_comma = ","; +#endif // PDF_ENABLE_ASAN printf("%s\n", config.c_str()); } |