cc_project_template_gn

A gn, ninja, and googletest-based C++ project template
git clone https://git.bracken.jp/cc_project_template_gn.git
Log | Files | Refs | Submodules | README | LICENSE

commit fbdd35587e5a93b3c43388a97e6d2f39a6758efa
parent 3fc281332cbe69107fb8a466901f495ac861e700
Author: Chris Bracken <chris@bracken.jp>
Date:   Fri, 13 Nov 2020 11:04:46 -0800

Updates for Clang 9

Linux headers include a recursive macro expansion at:
/usr/include/x86_64-linux-gnu/bits/sigaction.h:39

Googletest includes an extraneous semicolon at:
third_party/googletest/googletest/src/gtest.cc:2990

Diffstat:
Mbuild/BUILD.gn | 1+
Msecondary/third_party/googletest/BUILD.gn | 1+
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/build/BUILD.gn b/build/BUILD.gn @@ -16,6 +16,7 @@ config("compiler_warnings") { cflags = [ "-Weverything", "-Werror", + "-Wno-disabled-macro-expansion", ] cflags_cc = [ "-Wno-c++98-compat", diff --git a/secondary/third_party/googletest/BUILD.gn b/secondary/third_party/googletest/BUILD.gn @@ -19,6 +19,7 @@ config("gtest_private_config") { "-Wno-unused-template", "-Wno-used-but-marked-unused", "-Wno-zero-as-null-pointer-constant", + "-Wno-extra-semi-stmt", ] ldflags = ["-lpthread"] }