Home | History | Annotate | Download | only in tools
      1 /*
      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 
     16 extern "C" {
     17 
     18     const char* __lsan_default_suppressions();
     19     const char* __lsan_default_suppressions() {
     20         return "leak:libfontconfig\n"    // FontConfig looks like it leaks, but it doesn't.
     21                "leak:libGL.so\n"         // For NVidia driver.
     22                "leak:__strdup\n"         // An eternal mystery, skia:2916.
     23                ;
     24     }
     25 
     26 }
     27 
     28 #endif
     29