diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-04-17 23:26:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-17 23:26:53 +0300 |
commit | 8ee1e49ae683cbd7eb10da37327062a490cbee70 (patch) | |
tree | e3c4d8560ef9f345c75f14c8543ba59535070c1e /mesonbuild/compilers/cpp.py | |
parent | 3fc1ca8687a5030577ab2ba6449d7028c6a5b884 (diff) | |
parent | bd37afeeea0283dac1051b7d9bedf099252c1d19 (diff) | |
download | meson-8ee1e49ae683cbd7eb10da37327062a490cbee70.zip meson-8ee1e49ae683cbd7eb10da37327062a490cbee70.tar.gz meson-8ee1e49ae683cbd7eb10da37327062a490cbee70.tar.bz2 |
Merge pull request #3353 from xclaesse/has-link-argument
Add has_link_argument() and friends
Diffstat (limited to 'mesonbuild/compilers/cpp.py')
-rw-r--r-- | mesonbuild/compilers/cpp.py | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py index 8dd2306..4c48052 100644 --- a/mesonbuild/compilers/cpp.py +++ b/mesonbuild/compilers/cpp.py @@ -199,20 +199,10 @@ class IntelCPPCompiler(IntelCompiler, CPPCompiler): def get_option_link_args(self, options): return [] - def has_multi_arguments(self, args, env): - for arg in args: - if arg.startswith('-Wl,'): - mlog.warning('''{} looks like a linker argument, but has_argument -and other similar methods only support checking compiler arguments. -Using them to check linker arguments are never supported, and results -are likely to be wrong regardless of the compiler you are using. -'''.format(arg)) - return super().has_multi_arguments(args + ['-diag-error', '10006'], env) - class VisualStudioCPPCompiler(VisualStudioCCompiler, CPPCompiler): def __init__(self, exelist, version, is_cross, exe_wrap, is_64): - self.language = 'cpp' + CPPCompiler.__init__(self, exelist, version, is_cross, exe_wrap) VisualStudioCCompiler.__init__(self, exelist, version, is_cross, exe_wrap, is_64) self.base_options = ['b_pch'] # FIXME add lto, pgo and the like @@ -239,7 +229,7 @@ class VisualStudioCPPCompiler(VisualStudioCCompiler, CPPCompiler): def get_compiler_check_args(self): # Visual Studio C++ compiler doesn't support -fpermissive, # so just use the plain C args. - return super(VisualStudioCCompiler, self).get_compiler_check_args() + return VisualStudioCCompiler.get_compiler_check_args(self) class ArmCPPCompiler(ArmCompiler, CPPCompiler): |