diff options
author | Pino Toscano <toscano.pino@tiscali.it> | 2020-04-09 13:35:47 +0200 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2020-04-10 11:29:35 -0700 |
commit | a33f20b9a4e2e0ecf08f251be290bffd0d31a92d (patch) | |
tree | 6f70a1d525ec136563a42d7ef887f00d24a6cc8a | |
parent | 626522965f30827a48eb97e05a5d942a493edb84 (diff) | |
download | meson-a33f20b9a4e2e0ecf08f251be290bffd0d31a92d.zip meson-a33f20b9a4e2e0ecf08f251be290bffd0d31a92d.tar.gz meson-a33f20b9a4e2e0ecf08f251be290bffd0d31a92d.tar.bz2 |
compilers: disable b_sanitize on hurd
ASAN is not supported on the Hurd yet.
-rw-r--r-- | mesonbuild/compilers/mixins/gnu.py | 4 |
1 files changed, 3 insertions, 1 deletions
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') |