Wno-extern-c-compat flag is only used by clang, gcc does not care about
it and actually complains this flag does not exist.
Change-Id: Ib4d46a0f4a9a1e169d5503364e4999abc23cb194
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
'direct_dependent_settings': {
'cflags': [
'<!@(<(pkg-config) --cflags elementary)',
- # Fix: elm_prefs_common.h:27:9: warning: empty struct has size 0 in C, size 1 in C++
- '-Wno-extern-c-compat',
],
},
'link_settings': {
'<!@(<(pkg-config) --libs-only-l elementary)',
],
},
+ 'conditions': [
+ ['clang==1', {
+ 'direct_dependent_settings': {
+ 'cflags': [
+ # Fix: elm_prefs_common.h:27:9: warning: empty struct has size 0 in C, size 1 in C++
+ '-Wno-extern-c-compat',
+ ],
+ },
+ }],
+ ],
}, # elementary
{
'target_name': 'edje',