Merge "Add back the llvm-ar P flag"

This commit is contained in:
Yi Kong
2019-09-07 03:41:42 +00:00
committed by Gerrit Code Review

View File

@@ -551,7 +551,7 @@ func TransformObjToStaticLib(ctx android.ModuleContext, objFiles android.Paths,
flags builderFlags, outputFile android.ModuleOutPath, deps android.Paths) {
arCmd := "${config.ClangBin}/llvm-ar"
arFlags := "crsD"
arFlags := "crsPD"
if !ctx.Darwin() {
arFlags += " -format=gnu"
}