From a33f20b9a4e2e0ecf08f251be290bffd0d31a92d Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Thu, 9 Apr 2020 13:35:47 +0200 Subject: compilers: disable b_sanitize on hurd ASAN is not supported on the Hurd yet. --- mesonbuild/compilers/mixins/gnu.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mesonbuild/compilers') diff --git a/mesonbuild/compilers/mixins/gnu.py b/mesonbuild/compilers/mixins/gnu.py index 4c8ca0b..5072b11 100644 --- a/mesonbuild/compilers/mixins/gnu.py +++ b/mesonbuild/compilers/mixins/gnu.py @@ -140,12 +140,14 @@ class GnuLikeCompiler(metaclass=abc.ABCMeta): LINKER_PREFIX = '-Wl,' def __init__(self): - self.base_options = ['b_pch', 'b_lto', 'b_pgo', 'b_sanitize', 'b_coverage', + self.base_options = ['b_pch', 'b_lto', 'b_pgo', 'b_coverage', 'b_ndebug', 'b_staticpic', 'b_pie'] if not (self.info.is_windows() or self.info.is_cygwin() or self.info.is_openbsd()): self.base_options.append('b_lundef') if not self.info.is_windows() or self.info.is_cygwin(): self.base_options.append('b_asneeded') + if not self.info.is_hurd(): + self.base_options.append('b_sanitize') # All GCC-like backends can do assembly self.can_compile_suffixes.add('s') -- cgit v1.1