File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -588,7 +588,8 @@ void GenerateMacMain (StringWriter sw)
588588 if ( App . EnableDebug )
589589 sw . WriteLine ( "\t xamarin_debug_mode = TRUE;" ) ;
590590
591- sw . WriteLine ( $ "\t setenv (\" MONO_GC_PARAMS\" , \" { App . MonoGCParams } \" , 1);") ;
591+ if ( ! string . IsNullOrEmpty ( App . MonoGCParams ) && App . XamarinRuntime == XamarinRuntime . MonoVM )
592+ sw . WriteLine ( $ "\t setenv (\" MONO_GC_PARAMS\" , \" { App . MonoGCParams } \" , 1);") ;
592593
593594 sw . WriteLine ( "\t xamarin_supports_dynamic_registration = {0};" , App . DynamicRegistrationSupported ? "TRUE" : "FALSE" ) ;
594595
@@ -774,7 +775,7 @@ void GenerateIOSMain (StringWriter sw, Abi abi)
774775 sw . WriteLine ( "\t xamarin_marshal_objectivec_exception_mode = MarshalObjectiveCExceptionMode{0};" , app . MarshalObjectiveCExceptions ) ;
775776 if ( app . EnableDebug )
776777 sw . WriteLine ( "\t xamarin_debug_mode = TRUE;" ) ;
777- if ( ! string . IsNullOrEmpty ( app . MonoGCParams ) )
778+ if ( ! string . IsNullOrEmpty ( app . MonoGCParams ) && app . XamarinRuntime == XamarinRuntime . MonoVM )
778779 sw . WriteLine ( "\t setenv (\" MONO_GC_PARAMS\" , \" {0}\" , 1);" , app . MonoGCParams ) ;
779780 // Do this last, so that the app developer can override any other environment variable we set.
780781 foreach ( var kvp in app . EnvironmentVariables ) {
You can’t perform that action at this time.
0 commit comments