Commit d6fddbf1 by maxvujovic@gmail.com

Add GCC and clang warning flags from WebKit to ANGLE Mac and Linux builds

Review URL: https://codereview.appspot.com/6427049/ git-svn-id: https://angleproject.googlecode.com/svn/trunk@1230 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 99fbbe86
......@@ -5,6 +5,22 @@
{
'variables': {
'component%': 'static_library',
'gcc_or_clang_warnings': [
'-Wall',
'-Wchar-subscripts',
'-Werror',
'-Wextra',
'-Wformat=2',
'-Winit-self',
'-Wno-sign-compare',
'-Wno-unused-function',
'-Wno-unused-parameter',
'-Wno-unknown-pragmas',
'-Wpacked',
'-Wpointer-arith',
'-Wundef',
'-Wwrite-strings',
],
},
'target_defaults': {
'default_configuration': 'Debug',
......
......@@ -43,6 +43,16 @@
'compiler/preprocessor/new/Tokenizer.cpp',
'compiler/preprocessor/new/Tokenizer.h',
],
'conditions': [
['OS=="mac"', {
'xcode_settings': {
'WARNING_CFLAGS': ['<@(gcc_or_clang_warnings)']
},
}],
['OS=="linux"', {
'cflags': ['<@(gcc_or_clang_warnings)']
}],
],
},
{
'target_name': 'translator_common',
......@@ -154,6 +164,14 @@
}, { # else: posix
'sources': ['compiler/ossource_posix.cpp'],
}],
['OS=="mac"', {
'xcode_settings': {
'WARNING_CFLAGS': ['<@(gcc_or_clang_warnings)']
},
}],
['OS=="linux"', {
'cflags': ['<@(gcc_or_clang_warnings)']
}],
],
},
{
......@@ -183,6 +201,16 @@
'compiler/VersionGLSL.cpp',
'compiler/VersionGLSL.h',
],
'conditions': [
['OS=="mac"', {
'xcode_settings': {
'WARNING_CFLAGS': ['<@(gcc_or_clang_warnings)']
},
}],
['OS=="linux"', {
'cflags': ['<@(gcc_or_clang_warnings)']
}],
],
},
],
'conditions': [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment