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 3fc281332cbe69107fb8a466901f495ac861e700
parent 684a87f74c84e29b6e9271be704c6004082f5912
Author: Chris Bracken <chris@bracken.jp>
Date:   Fri,  5 Oct 2018 20:57:23 -0700

Use standard ar rather than llvm-ar in toolchain

llvm-ar is not pre-installed on macOS or FreeBSD.

Diffstat:
Mbuild/toolchain/BUILD.gn | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build/toolchain/BUILD.gn b/build/toolchain/BUILD.gn @@ -12,7 +12,7 @@ toolchain("clang") { cc = "clang" cxx = "clang++" ld = cxx - ar = "llvm-ar" + ar = "ar" tool("cc") { depfile = "{{output}}.d" @@ -66,7 +66,7 @@ toolchain("clang") { tool("alink") { rspfile = "{{output}}.rsp" - command = "rm -f {{output}} && $ar {{arflags}} rcsD {{output}} @\"$rspfile\"" + command = "rm -f {{output}} && $ar rcs {{output}} {{inputs}}" description = "AR {{output}}" rspfile_content = "{{inputs}}" outputs = [