Fix aot compiler execute_system on all HOST_WIN32. (#43358)
authormonojenkins <jo.shields+jenkins@xamarin.com>
Wed, 14 Oct 2020 09:18:26 +0000 (05:18 -0400)
committerGitHub <noreply@github.com>
Wed, 14 Oct 2020 09:18:26 +0000 (11:18 +0200)
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>
src/mono/mono/mini/aot-compiler.c

index 6778143..95c04b7 100644 (file)
@@ -9937,16 +9937,12 @@ mono_aot_patch_info_dup (MonoJumpInfo* ji)
        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);