aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-07-20 23:28:01 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2020-07-23 07:39:59 +0000
commit6e7d548b11ac4ae940c3e08e16d3118ac3a40420 (patch)
treeed7c0d147485e5f5f5556249907f7b72b4ffff21
parentc016401f95bce461a9acefc86bb75884684d9a5f (diff)
downloadmeson-6e7d548b11ac4ae940c3e08e16d3118ac3a40420.zip
meson-6e7d548b11ac4ae940c3e08e16d3118ac3a40420.tar.gz
meson-6e7d548b11ac4ae940c3e08e16d3118ac3a40420.tar.bz2
compilers: Cache gnu-mixins has_arguments() checks
want_output gives us the output file. We don't need the file. We just need the compiler stderr, which is always stored.
-rw-r--r--mesonbuild/compilers/mixins/gnu.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/mixins/gnu.py b/mesonbuild/compilers/mixins/gnu.py
index 3526a91..83f7047 100644
--- a/mesonbuild/compilers/mixins/gnu.py
+++ b/mesonbuild/compilers/mixins/gnu.py
@@ -362,7 +362,7 @@ class GnuCompiler(GnuLikeCompiler):
# For some compiler command line arguments, the GNU compilers will
# emit a warning on stderr indicating that an option is valid for a
# another language, but still complete with exit_success
- with self._build_wrapper(code, env, args, None, mode, disable_cache=False, want_output=True) as p:
+ with self._build_wrapper(code, env, args, None, mode) as p:
result = p.returncode == 0
if self.language in {'cpp', 'objcpp'} and 'is valid for C/ObjC' in p.stde:
result = False