Skip initializing the C# runtime when generating glue bindings
The bindings generator doesn't require the C# runtime in order to generate the glue, and when it the glue generation runs, it exits immediately afterwards, so we can skip this initialization when the `--generate-mono-glue` flag is passed in. Fixes issue 75152
This commit is contained in:
parent
1becfea37c
commit
e56fdc8a9a
@ -93,6 +93,12 @@ String CSharpLanguage::get_extension() const {
|
||||
}
|
||||
|
||||
void CSharpLanguage::init() {
|
||||
#ifdef TOOLS_ENABLED
|
||||
if (OS::get_singleton()->get_cmdline_args().find("--generate-mono-glue")) {
|
||||
print_verbose(".NET: Skipping runtime initialization because glue generation is enabled.");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
#ifdef DEBUG_METHODS_ENABLED
|
||||
if (OS::get_singleton()->get_cmdline_args().find("--class-db-json")) {
|
||||
class_db_api_to_json("user://class_db_api.json", ClassDB::API_CORE);
|
||||
|
Loading…
Reference in New Issue
Block a user