Merge "Fix vndk snapshot suffix on Makefile" into rvc-dev
diff --git a/cc/cc.go b/cc/cc.go
index 04d30f1..daff3d2 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -2414,8 +2414,13 @@
if c, ok := ccDep.(*Module); ok {
// Use base module name for snapshots when exporting to Makefile.
- if c.isSnapshotPrebuilt() && !c.IsVndk() {
+ if c.isSnapshotPrebuilt() {
baseName := c.BaseModuleName()
+
+ if c.IsVndk() {
+ return baseName + ".vendor"
+ }
+
if vendorSuffixModules[baseName] {
return baseName + ".vendor"
} else {