Some compiler flags are clang only

This commit is contained in:
Cheng Zhao 2017-11-21 21:48:06 +09:00
parent 4f9c5310a9
commit 0d8cfe8dbe
5 changed files with 38 additions and 15 deletions

View file

@ -358,7 +358,6 @@
# Required settings of using breakpad.
'cflags_cc': [
'-Wno-empty-body',
'-Wno-reserved-user-defined-literal',
],
'include_dirs': [
'vendor/breakpad/src',
@ -367,6 +366,12 @@
'vendor/breakpad/breakpad.gyp:breakpad_client',
],
}], # OS=="linux"
['OS=="linux" and clang==1', {
# Required settings of using breakpad.
'cflags_cc': [
'-Wno-reserved-user-defined-literal',
],
}], # OS=="linux" and clang==1
],
}, # target <(product_name)_lib
{