aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-09-10 21:39:22 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2016-09-11 10:10:46 +0530
commit4228a6dab6c591298b0895ce6a1ee034ba874581 (patch)
tree4428783815e94e6081c5e35083945487296731aa /mesonbuild/compilers.py
parentc7e5e558f9b80c695907336f2150d097d9883ba4 (diff)
downloadmeson-4228a6dab6c591298b0895ce6a1ee034ba874581.zip
meson-4228a6dab6c591298b0895ce6a1ee034ba874581.tar.gz
meson-4228a6dab6c591298b0895ce6a1ee034ba874581.tar.bz2
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.
Diffstat (limited to 'mesonbuild/compilers.py')
-rw-r--r--mesonbuild/compilers.py7
1 files changed, 1 insertions, 6 deletions
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']}