From ed0dd76eaa43bb295393872d6b91c7eb61265ef3 Mon Sep 17 00:00:00 2001 From: Mitch Phillips Date: Tue, 25 Jan 2022 10:35:50 -0800 Subject: [PATCH] [NFCI] Change llvm-ar '-format' to be '--format'. Upcoming versions of the toolchain (at least when I was locally testing) drop support for the single-dashed argument type. Fixing this ahead of time as to hopefully avoid the toolchain-release-blocking bug in future :). Bug: N/A Test: Build the platform. Change-Id: Ia2c6dcb19556f1979f9a6ecfd3a0ec58fb73e36e --- cc/builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cc/builder.go b/cc/builder.go index b494f7bab..8d2cb3bf1 100644 --- a/cc/builder.go +++ b/cc/builder.go @@ -746,7 +746,7 @@ func transformObjToStaticLib(ctx android.ModuleContext, arCmd := "${config.ClangBin}/llvm-ar" arFlags := "" if !ctx.Darwin() { - arFlags += " -format=gnu" + arFlags += " --format=gnu" } if len(wholeStaticLibs) == 0 {