Exemple #1
0
void
mono_hwcap_init (void)
{
	const char *verbose = g_getenv ("MONO_VERBOSE_HWCAP");
	const char *conservative = g_getenv ("MONO_CONSERVATIVE_HWCAP");

	if (hwcap_inited)
		return;

#ifdef MONO_CROSS_COMPILE
	/*
	 * If we're cross-compiling, we want to be as
	 * conservative as possible so that we produce
	 * code that's portable. Default to that.
	 */
	if (!conservative)
		conservative = "1";
#endif

	if (!conservative || strncmp (conservative, "1", 1))
		mono_hwcap_arch_init ();

	if (verbose && !strncmp (verbose, "1", 1))
		mono_hwcap_print (stdout);
}
Exemple #2
0
void
mono_hwcap_init (void)
{
	const char *verbose = getenv ("MONO_VERBOSE_HWCAP");

	if (hwcap_inited)
		return;

	mono_hwcap_arch_init ();

	if (verbose)
		mono_hwcap_print (stdout);
}