am 44f20f70: am 13f00594: Merge "LibNativeHelper: No bind mount on mac"
* commit '44f20f7055cb2d7af7d01a702fe0648e34647aba':
LibNativeHelper: No bind mount on mac
diff --git a/libnativebridge/native_bridge.cc b/libnativebridge/native_bridge.cc
index 8c0aa84..11f330c 100644
--- a/libnativebridge/native_bridge.cc
+++ b/libnativebridge/native_bridge.cc
@@ -218,6 +218,7 @@
app_data_dir = new char[len];
strncpy(app_data_dir, app_data_dir_in, len);
+#ifndef __APPLE__
if (instruction_set == nullptr) {
return;
}
@@ -244,6 +245,9 @@
if (TEMP_FAILURE_RETRY(mount("/proc/cpuinfo", cpuinfo_path, nullptr, MS_BIND, nullptr)) == -1) {
ALOGW("Failed to bind-mount %s as /proc/cpuinfo: %d", cpuinfo_path, errno);
}
+#else
+ ALOGW("Mac OS does not support bind-mounting. Host simulation of native bridge impossible.");
+#endif
}
static void SetCpuAbi(JNIEnv* env, jclass build_class, const char* field, const char* value) {