Source release v3.4.1
This commit is contained in:
@@ -11,19 +11,41 @@
|
||||
'target_defaults': {
|
||||
# These are flags passed to the compiler for all C & C++ files.
|
||||
'cflags': [
|
||||
'-fPIC',
|
||||
'-fno-exceptions',
|
||||
# Enable all warnings, and treat warnings as errors.
|
||||
'-Wall',
|
||||
'-Werror',
|
||||
],
|
||||
|
||||
# These are flags passed to the compiler for plain C only.
|
||||
'cflags_c': [
|
||||
'-Wbad-function-cast',
|
||||
],
|
||||
|
||||
# These are flags passed to the compiler for C++ only.
|
||||
'cflags_cc': [
|
||||
'-fPIC',
|
||||
'-fno-rtti',
|
||||
'-fno-exceptions',
|
||||
# Enable all warnings, and treat warnings as errors.
|
||||
'-Wall',
|
||||
'-Werror',
|
||||
'-Wextra',
|
||||
'-Wunused',
|
||||
'-fno-rtti',
|
||||
'-Wcast-qual',
|
||||
'-Wno-long-long',
|
||||
'-Wno-variadic-macros',
|
||||
'-Wno-inline',
|
||||
'-Wformat=2',
|
||||
'-Wno-format-nonliteral',
|
||||
'-Wshadow',
|
||||
'-Wnon-virtual-dtor',
|
||||
'-Woverloaded-virtual',
|
||||
'-Wctor-dtor-privacy',
|
||||
'-Wcast-align',
|
||||
'-Wno-conversion',
|
||||
'-Wignored-qualifiers',
|
||||
'-Wreturn-type',
|
||||
#'-Wstrict-null-sentinel',
|
||||
#'-Wuseless-cast',
|
||||
'-Wno-unused-parameter', # repeated in protobufs triggers this
|
||||
],
|
||||
|
||||
# These are flags passed to the linker.
|
||||
@@ -53,6 +75,26 @@
|
||||
],
|
||||
|
||||
'cflags_cc=': [
|
||||
#'-fno-rtti',
|
||||
'-Wcast-qual',
|
||||
'-Wextra',
|
||||
'-Wunused',
|
||||
'-Wno-long-long',
|
||||
'-Wno-variadic-macros',
|
||||
'-Wno-inline',
|
||||
'-Wformat=2',
|
||||
'-Wno-format-nonliteral',
|
||||
#'-Wshadow',
|
||||
'-Wnon-virtual-dtor',
|
||||
'-Woverloaded-virtual',
|
||||
#'-Wstrict-null-sentinel',
|
||||
'-Wctor-dtor-privacy',
|
||||
#'-Wbad-function-cast',
|
||||
'-Wcast-align',
|
||||
#'-Wconversion',
|
||||
#'-Wuseless-cast',
|
||||
'-Wno-ignored-qualifiers',
|
||||
'-Wno-return-type',
|
||||
],
|
||||
|
||||
'ldflags=': [
|
||||
@@ -78,6 +120,7 @@
|
||||
}, { # disable_cpp_11 != 1
|
||||
'cflags_cc': [
|
||||
'-std=c++11',
|
||||
'-Wc++11-compat',
|
||||
],
|
||||
}], # end disable_cpp_11 == 1 condition
|
||||
], # end target_conditions
|
||||
|
||||
Reference in New Issue
Block a user