diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-02-02 19:27:18 +0530 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-02-02 19:40:12 +0200 |
commit | ad8048aac34caa044267561f53d22104fccbdd2c (patch) | |
tree | a9a2ee75537327865791027aac5f20220c3d27eb | |
parent | e42f366e0b272196b99ae4f80453d6679b3f90bb (diff) | |
download | meson-ad8048aac34caa044267561f53d22104fccbdd2c.zip meson-ad8048aac34caa044267561f53d22104fccbdd2c.tar.gz meson-ad8048aac34caa044267561f53d22104fccbdd2c.tar.bz2 |
compilers: Don't use CompilerArgs() for sanity checks
It's only useful to use those when you have to override include dirs
or library paths by appending them from various sources according to
the priority order, or if the compiler args need to be converted from
Unix/GCC-style to native (MSVC, for instance) style.
Sanity checks match neither of these.
Closes https://github.com/mesonbuild/meson/issues/1351
-rw-r--r-- | mesonbuild/compilers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py index bb9b04a..5351111 100644 --- a/mesonbuild/compilers.py +++ b/mesonbuild/compilers.py @@ -601,7 +601,7 @@ class Compiler: self.language)) def get_cross_extra_flags(self, environment, *, compile, link): - extra_flags = CompilerArgs(self) + extra_flags = [] if self.is_cross and environment: if 'properties' in environment.cross_info.config: lang_args_key = self.language + '_args' @@ -831,7 +831,7 @@ class CCompiler(Compiler): mlog.debug('Sanity testing ' + self.language + ' compiler:', ' '.join(self.exelist)) mlog.debug('Is cross compiler: %s.' % str(self.is_cross)) - extra_flags = CompilerArgs(self) + extra_flags = [] source_name = os.path.join(work_dir, sname) binname = sname.rsplit('.', 1)[0] if self.is_cross: |