static void mini_usage (void);
-#ifdef PLATFORM_WIN32
+#ifdef HOST_WIN32
/* Need this to determine whether to detach console */
#include <mono/metadata/cil-coff.h>
/* This turns off command line globbing under win32 */
" mode is one of cas, core-clr, verifiable or validil\n"
" --attach=OPTIONS Pass OPTIONS to the attach agent in the runtime.\n"
" Currently the only supported option is 'disable'.\n"
+ " --llvm Controls whenever the runtime uses LLVM compiled code.\n"
);
}
#define error_if_aot_unsupported()
#endif
-#ifdef PLATFORM_WIN32
+#ifdef HOST_WIN32
BOOL APIENTRY DllMain (HMODULE module_handle, DWORD reason, LPVOID reserved)
{
if (!GC_DllMain (module_handle, reason, reserved))
#ifdef MONO_JIT_INFO_TABLE_TEST
} else if (strcmp (argv [i], "--test-jit-info-table") == 0) {
test_jit_info_table = TRUE;
+#endif
+ } else if (strcmp (argv [i], "--llvm") == 0) {
+#ifndef MONO_ARCH_LLVM_SUPPORTED
+ fprintf (stderr, "--llvm not supported on this platform.\n");
+ return 1;
+#else
+ mono_use_llvm = TRUE;
#endif
} else {
fprintf (stderr, "Unknown command line option: '%s'\n", argv [i]);
#ifdef MONO_CROSS_COMPILE
if (!mono_compile_aot) {
- fprintf (stderr, "This mono runtime is compiled for cross-compiling. Only the --aot option is supported.");
+ fprintf (stderr, "This mono runtime is compiled for cross-compiling. Only the --aot option is supported.\n");
exit (1);
}
#if SIZEOF_VOID_P == 8 && defined(TARGET_ARM)
exit (1);
}
-#ifdef PLATFORM_WIN32
+#ifdef HOST_WIN32
/* Detach console when executing IMAGE_SUBSYSTEM_WINDOWS_GUI on win32 */
if (!enable_debugging && !mono_compile_aot && ((MonoCLIImageInfo*)(mono_assembly_get_image (assembly)->image_info))->cli_header.nt.pe_subsys_required == IMAGE_SUBSYSTEM_WINDOWS_GUI)
FreeConsole ();