aboutsummaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2016-06-03 13:54:46 -0700
committerDan Willemsen <dwillemsen@google.com>2016-06-03 13:56:55 -0700
commit58f9bb1160074f06e2cea66f78dfdf4d42834c59 (patch)
treeed9e77a6a4a1218c56f5346a301f3606aff0292c /cc
parent0c236aba6e8b45ac0fde3c7db627f366e3caeaee (diff)
downloadbuild_soong-58f9bb1160074f06e2cea66f78dfdf4d42834c59.tar.gz
build_soong-58f9bb1160074f06e2cea66f78dfdf4d42834c59.tar.bz2
build_soong-58f9bb1160074f06e2cea66f78dfdf4d42834c59.zip
androidmk: Support version_script
This only translates the common case using $(LOCAL_PATH). If it doesn't match here, Soong will throw an error with a suggested fix. Change-Id: If64c8fca008a1a414fc12389e6b1bb40af0df899
Diffstat (limited to 'cc')
-rw-r--r--cc/check.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/check.go b/cc/check.go
index e6a80361..38a64a07 100644
--- a/cc/check.go
+++ b/cc/check.go
@@ -69,6 +69,8 @@ func CheckBadLinkerFlags(ctx ModuleContext, prop string, flags []string) {
}
} else if strings.HasPrefix(flag, "-L") {
ctx.PropertyErrorf(prop, "Bad flag: `%s` is not allowed", flag)
+ } else if strings.HasPrefix(flag, "-Wl,--version-script") {
+ ctx.PropertyErrorf(prop, "Bad flag: `%s`, use version_script instead", flag)
} else if strings.Contains(flag, " ") {
ctx.PropertyErrorf(prop, "Bad flag: `%s` is not an allowed multi-word flag. Should it be split into multiple flags?", flag)
}