Use xcrun and xcode-select to auto-configure mac sdk

This roughly matches what make uses, but with less string parsing.
Also use a full path to "ar", so that we can depend on it.

Change-Id: I5e9d4c06b6cbbbfbf93e563dace128943db21b02
This commit is contained in:
Dan Willemsen
2015-12-14 20:02:44 -08:00
parent 80a7c2ab82
commit cf7c71bc47
2 changed files with 51 additions and 7 deletions

View File

@@ -227,7 +227,7 @@ func TransformObjToStaticLib(ctx common.AndroidModuleContext, objFiles common.Pa
func TransformDarwinObjToStaticLib(ctx common.AndroidModuleContext, objFiles common.Paths,
flags builderFlags, outputPath common.ModuleOutPath) {
arCmd := "ar"
arCmd := "${macArPath}"
arFlags := "cqs"
// ARG_MAX on darwin is 262144, use half that to be safe