Merge "Use correct LOCAL_MODULE_TARGET_ARCH for x86_64" am: 170e6a100b am: fd46044fef am: 67793ab02a
am: 2a8a3b47a4

Change-Id: Ie11829e546c5e3e6a10b5ecedb3dfca1d1e85745
diff --git a/Android.build_one.mk b/Android.build_one.mk
index cb5de07..9ab3a2b 100644
--- a/Android.build_one.mk
+++ b/Android.build_one.mk
@@ -18,9 +18,11 @@
 ifeq ($(vg_build_second_arch),true)
 LOCAL_MULTILIB := 32
 vg_local_arch := $(TARGET_2ND_ARCH)
+vg_local_android_arch := $(TARGET_2ND_ARCH)
 else
 LOCAL_MULTILIB := first
 vg_local_arch  := $(vg_arch)
+vg_local_android_arch := $(TARGET_ARCH)
 endif
 
 # TODO: This workaround is to avoid calling memset from VG(memset)
@@ -32,7 +34,7 @@
 
 LOCAL_MODULE := $(vg_local_module)-$(vg_local_arch)-linux
 
-LOCAL_MODULE_TARGET_ARCH := $(vg_local_arch)
+LOCAL_MODULE_TARGET_ARCH := $(vg_local_android_arch)
 
 LOCAL_SRC_FILES := $(vg_local_src_files)
 
diff --git a/Android.clean.mk b/Android.clean.mk
index 31ae7f4..ed0a053 100644
--- a/Android.clean.mk
+++ b/Android.clean.mk
@@ -12,7 +12,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-
+vg_local_android_arch :=
+vg_local_arch :=
 vg_local_module :=
 vg_local_target :=
 vg_local_module_class :=