mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 14:56:54 +01:00
15 lines
527 B
Diff
15 lines
527 B
Diff
|
diff --git a/mono/metadata/reflection.c b/mono/metadata/reflection.c
|
||
|
index ce053b0ef49..7c51f20c4cf 100644
|
||
|
--- a/mono/metadata/reflection.c
|
||
|
+++ b/mono/metadata/reflection.c
|
||
|
@@ -4336,6 +4336,9 @@ create_dynamic_mono_image (MonoDynamicAssembly *assembly, char *assembly_name, c
|
||
|
|
||
|
const char *version = mono_get_runtime_info ()->runtime_version;
|
||
|
|
||
|
+ char *env_ver = getenv("MONO_CREATE_IMAGE_VERSION");
|
||
|
+ if (env_ver) version = env_ver;
|
||
|
+
|
||
|
#if HAVE_BOEHM_GC
|
||
|
image = GC_MALLOC (sizeof (MonoDynamicImage));
|
||
|
#else
|