diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-12-17 14:16:22 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-12-18 10:17:36 +0530 |
commit | 6981d298614118b0663aae766c49a27b83f44733 (patch) | |
tree | 3de89fbc1fc52050c0e96cc5905308609f564ab4 | |
parent | 6292122a19ed765ed060c8d4aad9d0791cfef9f1 (diff) | |
download | meson-6981d298614118b0663aae766c49a27b83f44733.zip meson-6981d298614118b0663aae766c49a27b83f44733.tar.gz meson-6981d298614118b0663aae766c49a27b83f44733.tar.bz2 |
compilers: Always pass -pipe to compiler checks
This is obviously much faster. Not sure why we weren't doing it already.
Causes a speed-up of about 10-15%
-rw-r--r-- | mesonbuild/compilers.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py index b9256d2..ee1f2e5 100644 --- a/mesonbuild/compilers.py +++ b/mesonbuild/compilers.py @@ -483,6 +483,7 @@ class Compiler(): commands = self.get_exelist() commands.append(srcname) commands += extra_args + commands += self.get_always_args() if mode == 'compile': commands += self.get_compile_only_args() # Preprocess mode outputs to stdout, so no output args @@ -1842,6 +1843,8 @@ class VisualStudioCCompiler(CCompiler): def __init__(self, exelist, version, is_cross, exe_wrap): CCompiler.__init__(self, exelist, version, is_cross, exe_wrap) self.id = 'msvc' + # /showIncludes is needed for build dependency tracking in Ninja + # See: https://ninja-build.org/manual.html#_deps self.always_args = ['/nologo', '/showIncludes'] self.warn_args = {'1': ['/W2'], '2': ['/W3'], |