OSDN Git Service

scons: Match some of LLVM warning options.
authorJose Fonseca <jfonseca@vmware.com>
Thu, 19 Mar 2015 22:09:20 +0000 (22:09 +0000)
committerJose Fonseca <jfonseca@vmware.com>
Sun, 22 Mar 2015 08:23:24 +0000 (08:23 +0000)
Reviewed-by: Brian Paul <brianp@vmware.com>
scons/llvm.py

index d145de8..be7df9f 100644 (file)
@@ -132,6 +132,11 @@ def generate(env):
             # Some of the LLVM C headers use the inline keyword without
             # defining it.
             env.Append(CPPDEFINES = [('inline', '__inline')])
+            # Match some of the warning options from llvm/cmake/modules/HandleLLVMOptions.cmake
+            env.AppendUnique(CXXFLAGS = [
+                '/wd4355', # 'this' : used in base member initializer list
+                '/wd4624', # 'derived class' : destructor could not be generated because a base class destructor is inaccessible
+            ])
             if env['build'] in ('debug', 'checked'):
                 # LLVM libraries are static, build with /MT, and they
                 # automatically link agains LIBCMT. When we're doing a