From 7d1999dc0909249a1769a4ccd9c59a2b8aa1df38 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Thu, 7 Nov 2013 18:23:51 +0200 Subject: [PATCH] Get rid of msvc banner for good. --- backends.py | 1 + environment.py | 14 +++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/backends.py b/backends.py index 10c48ed58..2f3df55e2 100644 --- a/backends.py +++ b/backends.py @@ -874,6 +874,7 @@ class NinjaBackend(Backend): linker_rule = linker_base + crstr + '_LINKER' abspath = os.path.join(self.environment.get_build_dir(), target.subdir) commands = [] + commands += linker.get_linker_always_flags() if isinstance(target, build.Executable): commands += linker.get_std_exe_link_flags() elif isinstance(target, build.SharedLibrary): diff --git a/environment.py b/environment.py index 84768f1e6..3736fbc00 100644 --- a/environment.py +++ b/environment.py @@ -56,6 +56,9 @@ class CCompiler(): def get_always_flags(self): return [] + def get_linker_always_flags(self): + return [] + def get_soname_flags(self, shlib_name, path): return [] @@ -437,6 +440,9 @@ class VisualStudioCCompiler(CCompiler): def get_linker_exelist(self): return ['link'] # FIXME, should have same path as compiler. + def get_linker_always_flags(self): + return ['/nologo'] + def get_linker_output_flags(self, outputname): return ['/OUT:' + outputname] @@ -668,6 +674,9 @@ class VisualStudioLinker(): def get_always_flags(self): return VisualStudioLinker.always_flags + def get_linker_always_flags(self): + return VisualStudioLinker.always_flags + def build_rpath_args(self, build_dir, rpath_paths): return [] @@ -682,13 +691,16 @@ class ArLinker(): def get_exelist(self): return self.exelist - + def get_std_link_flags(self): return self.std_flags def get_output_flags(self, target): return [target] + def get_linker_always_flags(self): + return [] + def get_coverage_link_flags(self): return []