diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-03-17 22:52:55 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-03-17 22:52:55 +0200 |
commit | 90c799fc610f2955d08e84c053ab43dd09768e20 (patch) | |
tree | 8e71217c42238c8482311037c863a6e5417a202c /mesonbuild/compilers.py | |
parent | b5c7cca0dce1ad13dcf30ddaaf5fe52ceb5bec3d (diff) | |
download | meson-90c799fc610f2955d08e84c053ab43dd09768e20.zip meson-90c799fc610f2955d08e84c053ab43dd09768e20.tar.gz meson-90c799fc610f2955d08e84c053ab43dd09768e20.tar.bz2 |
Do not use lundef on OSX.
Diffstat (limited to 'mesonbuild/compilers.py')
-rw-r--r-- | mesonbuild/compilers.py | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py index 4dcc256..4bb0d83 100644 --- a/mesonbuild/compilers.py +++ b/mesonbuild/compilers.py @@ -1370,7 +1370,9 @@ class GnuCCompiler(CCompiler): self.warn_args = {'1': ['-Wall', '-Winvalid-pch'], '2': ['-Wall', '-Wextra', '-Winvalid-pch'], '3' : ['-Wall', '-Wpedantic', '-Wextra', '-Winvalid-pch']} - self.base_options = ['b_lto', 'b_pgo', 'b_sanitize', 'b_lundef'] + self.base_options = ['b_lto', 'b_pgo', 'b_sanitize'] + if self.gcc_type != GCC_OSX: + self.base_options.append('b_lundef') def get_pic_args(self): if self.gcc_type == GCC_MINGW: @@ -1433,7 +1435,9 @@ class GnuObjCCompiler(ObjCCompiler): self.warn_args = {'1': ['-Wall', '-Winvalid-pch'], '2': ['-Wall', '-Wextra', '-Winvalid-pch'], '3' : ['-Wall', '-Wpedantic', '-Wextra', '-Winvalid-pch']} - self.base_options = ['b_lto', 'b_pgo', 'b_sanitize', 'b_lundef'] + self.base_options = ['b_lto', 'b_pgo', 'b_sanitize'] + if self.gcc_type != GCC_OSX: + self.base_options.append('b_lundef') def get_buildtype_args(self, buildtype): return gnulike_buildtype_args[buildtype] @@ -1459,7 +1463,9 @@ class GnuObjCPPCompiler(ObjCPPCompiler): self.warn_args = {'1': ['-Wall', '-Winvalid-pch', '-Wnon-virtual-dtor'], '2': ['-Wall', '-Wextra', '-Winvalid-pch', '-Wnon-virtual-dtor'], '3' : ['-Wall', '-Wpedantic', '-Wextra', '-Winvalid-pch', '-Wnon-virtual-dtor']} - self.base_options = ['b_lto', 'b_pgo', 'b_sanitize', 'b_lundef'] + self.base_options = ['b_lto', 'b_pgo', 'b_sanitize'] + if self.gcc_type != GCC_OSX: + self.base_options.append('b_lundef') def get_buildtype_args(self, buildtype): return gnulike_buildtype_args[buildtype] @@ -1535,7 +1541,9 @@ class GnuCPPCompiler(CPPCompiler): self.warn_args = {'1': ['-Wall', '-Winvalid-pch', '-Wnon-virtual-dtor'], '2': ['-Wall', '-Wextra', '-Winvalid-pch', '-Wnon-virtual-dtor'], '3': ['-Wall', '-Wpedantic', '-Wextra', '-Winvalid-pch', '-Wnon-virtual-dtor']} - self.base_options = ['b_lto', 'b_pgo', 'b_sanitize', 'b_lundef'] + self.base_options = ['b_lto', 'b_pgo', 'b_sanitize'] + if self.gcc_type != GCC_OSX: + self.base_options.append('b_lundef') def get_always_args(self): return ['-pipe'] |