From 4228a6dab6c591298b0895ce6a1ee034ba874581 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sat, 10 Sep 2016 21:39:22 +0530 Subject: vs: Never serialize debug file generation with /FS /FS forces .pdb file writing to be serialized through MSPDBSRV.EXE, which is supposed to solve concurrency issues (esp. with anti-viruses), but it doesn't actually always work. It also isn't needed anymore since we don't use a shared vcXXX.pdb temporary file for pdb writing and use /Fd to explicitly set a per-target pdb filename instead. Not serializing the PDB writing will make a large difference on fast disks when linking multiple libraries and executables simultaneously. --- mesonbuild/compilers.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'mesonbuild/compilers.py') diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py index 8394aca..73f2416 100644 --- a/mesonbuild/compilers.py +++ b/mesonbuild/compilers.py @@ -1436,16 +1436,11 @@ class SwiftCompiler(Compiler): class VisualStudioCCompiler(CCompiler): std_warn_args = ['/W3'] std_opt_args= ['/O2'] - vs2010_always_args = ['/nologo', '/showIncludes'] - vs2013_always_args = ['/nologo', '/showIncludes', '/FS'] def __init__(self, exelist, version, is_cross, exe_wrap): CCompiler.__init__(self, exelist, version, is_cross, exe_wrap) self.id = 'msvc' - if int(version.split('.')[0]) > 17: - self.always_args = VisualStudioCCompiler.vs2013_always_args - else: - self.always_args = VisualStudioCCompiler.vs2010_always_args + self.always_args = ['/nologo', '/showIncludes'] self.warn_args = {'1': ['/W2'], '2': ['/W3'], '3': ['/w4']} -- cgit v1.1