From d8ae2e3851f648bbcc54fd118abc3eaf235d95ff Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Tue, 27 Feb 2018 15:12:16 +1100 Subject: [PATCH] msan-builder: suppress pixman false positive --- infra/base-images/base-msan-builder/packages/pixman.py | 7 +++++++ .../base-msan-builder/packages/pixman_blacklist.txt | 1 + 2 files changed, 8 insertions(+) create mode 100644 infra/base-images/base-msan-builder/packages/pixman_blacklist.txt diff --git a/infra/base-images/base-msan-builder/packages/pixman.py b/infra/base-images/base-msan-builder/packages/pixman.py index a7cdaa7e3..d63b1468f 100644 --- a/infra/base-images/base-msan-builder/packages/pixman.py +++ b/infra/base-images/base-msan-builder/packages/pixman.py @@ -33,3 +33,10 @@ class Package(package.Package): 'sed s/support_for_gcc_vector_extensions=yes/' 'support_for_gcc_vector_extensions=no/ -i %s/configure.ac' % source_directory) + + def PreBuild(self, source_directory, env, custom_bin_dir): + blacklist_flag = ' -fsanitize-blacklist=' + os.path.join( + os.path.dirname(os.path.abspath(__file__)), + 'pixman_blacklist.txt') + env['DEB_CXXFLAGS_APPEND'] += blacklist_flag + env['DEB_CFLAGS_APPEND'] += blacklist_flag diff --git a/infra/base-images/base-msan-builder/packages/pixman_blacklist.txt b/infra/base-images/base-msan-builder/packages/pixman_blacklist.txt new file mode 100644 index 000000000..90c00e444 --- /dev/null +++ b/infra/base-images/base-msan-builder/packages/pixman_blacklist.txt @@ -0,0 +1 @@ +src:pixman-sse2.c