Source release 15.0.0
This commit is contained in:
@@ -13,21 +13,22 @@
|
||||
# These are flags passed to the compiler for all C & C++ files.
|
||||
'cflags': [
|
||||
'-fPIC',
|
||||
'-fvisibility=hidden',
|
||||
],
|
||||
|
||||
# These are flags passed to the compiler for plain C only.
|
||||
'cflags_c': [
|
||||
# Compile using the C11 standard with POSIX extensions
|
||||
'-std=c11',
|
||||
'-D_POSIX_C_SOURCE=200809L',
|
||||
# Warn on bad function casts
|
||||
'-Wbad-function-cast',
|
||||
],
|
||||
# These are flags passed to the compiler for C++ only.
|
||||
'cflags_cc': [
|
||||
# Compile using the gnu'98 standard.
|
||||
# C++ standards are not used becuase of use of va_copy in
|
||||
# third_party/protobuf (When using std++03 it defines
|
||||
# __STRICT_ANSI__, which will make clang headers not define
|
||||
# va_copy.). C++11 is not used because some partner
|
||||
# toolchains do not yet support it.
|
||||
'-std=gnu++98',
|
||||
# Compile using the C++11 standard.
|
||||
'-std=c++11',
|
||||
# Disable unused C++ features that are expensive.
|
||||
'-fno-rtti',
|
||||
'-fno-exceptions',
|
||||
# Enable all warnings, and treat warnings as errors.
|
||||
@@ -56,9 +57,6 @@
|
||||
'-Wno-inconsistent-missing-override',
|
||||
#'-Wno-maybe-uninitialized',
|
||||
'-Wno-unknown-warning-option',
|
||||
# Fallthrough annotations are not supported on C++98, but GCC 7+ still
|
||||
# errors on them by default.
|
||||
'-Wno-implicit-fallthrough',
|
||||
'-Wno-dangling-else', # Allowed by Google C++ Style
|
||||
],
|
||||
|
||||
@@ -68,8 +66,6 @@
|
||||
|
||||
# These are macros set by the compiler.
|
||||
'defines': [
|
||||
# suppress use of override keyword.
|
||||
'DISABLE_OVERRIDE_KEYWORD',
|
||||
#'EXAMPLE_MACRO_WITH_NO_VALUE',
|
||||
#'EXAMPLE_KEY=EXAMPLE_VALUE',
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user