AOTed dlls which generated under x86 architecture do not work correctly.
So, skip ni file generation except arm architecture.
NI_COMMON module can be used by other tools (for example vd-nitool)
So, add architecture checking code in the initNICommon() function
int initNICommon(NiCommonOption* option)
{
+#if defined(__arm__)
// get interval value
const char* intervalFile = "/usr/share/dotnet.tizen/lib/crossgen_interval.txt";
std::ifstream inFile(intervalFile);
__tpa = getTPA();
return 0;
+#else
+ fprintf(stderr, "crossgen supports arm architecture only. skip ni file generation\n");
+ return -1;
+#endif
}
void finalizeNICommon()