aboutsummaryrefslogtreecommitdiff
path: root/environment.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-06-15 03:17:52 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2013-06-15 03:17:52 +0300
commitaf126c9d0ed95287d0a3a7511ccc06d9a9b7f1e9 (patch)
treea51a499135b658f98c0bb07f796ae971eed61100 /environment.py
parent45d51954941328342aecb710133785cefdacfe18 (diff)
downloadmeson-af126c9d0ed95287d0a3a7511ccc06d9a9b7f1e9.zip
meson-af126c9d0ed95287d0a3a7511ccc06d9a9b7f1e9.tar.gz
meson-af126c9d0ed95287d0a3a7511ccc06d9a9b7f1e9.tar.bz2
Dependency tracking works with MSVC.
Diffstat (limited to 'environment.py')
-rwxr-xr-xenvironment.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/environment.py b/environment.py
index 376ebfa..b9539b8 100755
--- a/environment.py
+++ b/environment.py
@@ -36,7 +36,10 @@ class CCompiler():
self.language = 'c'
self.default_suffix = 'c'
self.id = 'unknown'
-
+
+ def get_always_flags(self):
+ return []
+
def get_id(self):
return self.id
@@ -244,11 +247,15 @@ class ObjCPPCompiler(CPPCompiler):
class VisualStudioCCompiler(CCompiler):
std_warn_flags = ['/W3']
std_opt_flags= ['/O2']
+ always_flags = ['/nologo', '/showIncludes']
def __init__(self, exelist):
CCompiler.__init__(self, exelist)
self.id = 'msvc'
+ def get_always_flags(self):
+ return VisualStudioCCompiler.always_flags
+
def get_std_warn_flags(self):
return VisualStudioCCompiler.std_warn_flags
@@ -447,6 +454,7 @@ class ClangCPPCompiler(CPPCompiler):
return 'pch'
class VisualStudioLinker():
+ always_flags = ['/NOLOGO']
def __init__(self, exelist):
self.exelist = exelist
@@ -462,6 +470,9 @@ class VisualStudioLinker():
def get_coverage_link_flags(self):
return []
+ def get_always_flags(self):
+ return VisualStudioLinker.always_flags
+
class ArLinker():
std_flags = ['csr']
@@ -480,6 +491,8 @@ class ArLinker():
def get_coverage_link_flags(self):
return []
+ def get_always_flags(self):
+ return []
def exe_exists(arglist):
try:
p = subprocess.Popen(arglist, stdout=subprocess.PIPE, stderr=subprocess.PIPE)