diff options
Diffstat (limited to 'cc/check.go')
-rw-r--r-- | cc/check.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/check.go b/cc/check.go index 82d5a9ff..bb2c9dfc 100644 --- a/cc/check.go +++ b/cc/check.go @@ -91,8 +91,8 @@ func CheckBadHostLdlibs(ctx ModuleContext, prop string, flags []string) { flag = strings.TrimSpace(flag) // TODO: Probably should just redo this property to prefix -l in Soong - if !strings.HasPrefix(flag, "-l") { - ctx.PropertyErrorf(prop, "Invalid flag: `%s`, must start with `-l`", flag) + if !strings.HasPrefix(flag, "-l") && !strings.HasPrefix(flag, "-framework") { + ctx.PropertyErrorf(prop, "Invalid flag: `%s`, must start with `-l` or `-framework`", flag) } else if !inList(flag, allowed_ldlibs) { ctx.PropertyErrorf(prop, "Host library `%s` not available", flag) } |