HAVE_SYSTEM is not defined on all HOST_WIN32 where building the AOT compiler makes sense (like cygwin). Make sure this works on all HOST_WIN32 independent of HAVE_SYSTEM.
Co-authored-by: lateralusX <lateralusX@users.noreply.github.com>
return res;
}
-#ifdef HOST_WIN32
-#include <mono/utils/w32subset.h>
-#endif
-
static int
execute_system (const char * command)
{
int status = 0;
-#if defined (HOST_WIN32) && defined (HAVE_SYSTEM)
+#if defined (HOST_WIN32)
// We need an extra set of quotes around the whole command to properly handle commands
// with spaces since internally the command is called through "cmd /c.
char * quoted_command = g_strdup_printf ("\"%s\"", command);