Skip to content

Commit b815001

Browse files
committed
Add missing symbol and set host_path to NULL
1 parent df48aa0 commit b815001

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

clr_loader/ffi/mono.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
typedef struct _MonoObject MonoObject;
1111
1212
MonoDomain* mono_jit_init(const char *root_domain_name);
13+
void mono_jit_cleanup(MonoDomain *domain);
1314
MonoAssembly* mono_domain_assembly_open(MonoDomain *domain, const char *name);
1415
MonoImage* mono_assembly_get_image(MonoAssembly *assembly);
1516

clr_loader/hostfxr.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ def __iter__(self):
104104
def _get_handle(dll, dotnet_root, runtime_config):
105105
params = ffi.new("hostfxr_initialize_parameters*")
106106
params.size = ffi.sizeof("hostfxr_initialize_parameters")
107+
# params.host_path = ffi.new("char_t[]", encode(sys.executable))
108+
params.host_path = ffi.NULL
107109
params.dotnet_root = ffi.new("char_t[]", encode(dotnet_root))
108110

109111
handle_ptr = ffi.new("hostfxr_handle*")

0 commit comments

Comments
 (0)