blob: 4839942818482fdf37058f0ab3eab50f388bf5cb [file] [log] [blame]
mtklein0590fa52016-09-01 07:06:54 -07001/*
2 * Copyright 2016 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#include "SkTypes.h"
9
10#if !defined(__has_feature)
11 #define __has_feature(x) 0
12#endif
13
14#if __has_feature(address_sanitizer)
15
16extern "C" {
17
18 const char* __lsan_default_suppressions();
19 const char* __lsan_default_suppressions() {
Ben Wagner2aa9a222018-11-06 13:45:40 -050020 return "leak:libfontconfig\n" // FontConfig looks like it leaks, but it doesn't.
Ben Wagner2aa9a222018-11-06 13:45:40 -050021 "leak:libGLX_nvidia.so\n" // For NVidia driver.
22 "leak:libnvidia-glcore.so\n" // For NVidia driver.
Ben Wagner7cbb7a12018-12-14 13:07:12 -050023 "leak:libnvidia-tls.so\n" // For NVidia driver.
Ben Wagner6c30e742019-02-06 10:46:14 -050024 "leak:libxcb.so\n" // For Mesa Intel driver. skia:8710
mtklein0590fa52016-09-01 07:06:54 -070025 ;
26 }
27
28}
29
30#endif