commit 129b25211594fe3469b70e8616bc03d222a73a84
parent 8b8bed6c2c8f8d757b40dcd9ae20e7f2345f5e06
Author: Chris Bracken <chris@bracken.jp>
Date: Fri, 5 Oct 2018 13:08:27 -0700
Use C++17 for Objective-C++
Also adds comments on on language standard and warnings configs.
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/build/BUILD.gn b/build/BUILD.gn
@@ -1,3 +1,4 @@
+# Default language standards.
config("compiler_std") {
cflags_c = [
"-std=c11",
@@ -5,8 +6,12 @@ config("compiler_std") {
cflags_cc = [
"-std=c++17",
]
+ cflags_objcc = [
+ "-std=c++17",
+ ]
}
+# Default compiler warnings.
config("compiler_warnings") {
cflags = [
"-Weverything",
@@ -15,4 +20,7 @@ config("compiler_warnings") {
cflags_cc = [
"-Wno-c++98-compat",
]
+ cflags_objcc = [
+ "-Wno-c++98-compat",
+ ]
}