[mini] Wrap check for debug info enabled in ENABLE_NETCORE in all places (#32113)
authormonojenkins <jo.shields+jenkins@xamarin.com>
Tue, 11 Feb 2020 15:50:38 +0000 (10:50 -0500)
committerGitHub <noreply@github.com>
Tue, 11 Feb 2020 15:50:38 +0000 (16:50 +0100)
See if this fixes the weird bug-10127.exe test failure that only occurs on Windows C++ builds.

Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
src/mono/mono/mini/driver.c
src/mono/mono/mini/mini-runtime.h

index 47d98d7..ca18c4a 100644 (file)
@@ -200,7 +200,9 @@ static gboolean
 parse_debug_options (const char* p)
 {
        MonoDebugOptions *opt = mini_get_debug_options ();
+#ifdef ENABLE_NETCORE
        opt->enabled = TRUE;
+#endif
 
        do {
                if (!*p) {
index c857f8f..c791ae6 100644 (file)
@@ -263,7 +263,9 @@ typedef struct MonoDebugOptions {
         */
        gboolean top_runtime_invoke_unhandled;
 
+#ifdef ENABLE_NETCORE
        gboolean enabled;
+#endif
 } MonoDebugOptions;
 
 /*