diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-09-28 14:45:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-28 14:45:27 +0200 |
commit | d8af4f9e02277194ca1bb053447a25bfed2b6524 (patch) | |
tree | c33aa8ccee82b26d868fbc91abed94e2480864c2 /methods.py | |
parent | 243bdc4524ddcf8ac6bef03c378e14fe7bb263b8 (diff) | |
parent | 3a2ca68af3c8bafe9f60f09bd8fece894fe3a925 (diff) |
Merge pull request #22506 from akien-mga/thirdparty-no-warnings
SCons: Build thirdparty code in own env, disable warnings
Diffstat (limited to 'methods.py')
-rw-r--r-- | methods.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/methods.py b/methods.py index 00c477635e..3add9b1f18 100644 --- a/methods.py +++ b/methods.py @@ -19,6 +19,14 @@ def add_source_files(self, sources, filetype, lib_env=None, shared=False): sources.append(self.Object(path)) +def disable_warnings(self): + # 'self' is the environment + if self.msvc: + self.Append(CCFLAGS=['/w']) + else: + self.Append(CCFLAGS=['-w']) + + def add_module_version_string(self,s): self.module_version_string += "." + s |