compilers: disable b_sanitize on hurd

ASAN is not supported on the Hurd yet.
pull/6945/head
Pino Toscano 5 years ago committed by Dylan Baker
parent 626522965f
commit a33f20b9a4
  1. 4
      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')

Loading…
Cancel
Save