-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[macOS, Mono] Automatically enable JIT entitlements for the Mono exports. #50317
Conversation
platform/osx/export/export.cpp
Outdated
@@ -163,9 +164,11 @@ void EditorExportPlatformOSX::get_export_options(List<ExportOption> *r_options) | |||
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "codesign/replace_existing_signature"), true)); | |||
r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "codesign/entitlements/custom_file", PROPERTY_HINT_GLOBAL_FILE, "*.plist"), "")); | |||
|
|||
#ifndef MODULE_MONO_ENABLED |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd add an explanatory comment to make it clear why those are compiled out.
platform/osx/export/export.cpp
Outdated
@@ -41,6 +41,7 @@ | |||
#include "editor/editor_export.h" | |||
#include "editor/editor_node.h" | |||
#include "editor/editor_settings.h" | |||
#include "modules/modules_enabled.gen.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That won't work on 3.x
which predates this refactoring:
platform/osx/export/export.cpp:44:10: fatal error: 'modules/modules_enabled.gen.h' file not found
#include "modules/modules_enabled.gen.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
But you can instead rely on if (Engine::get_singleton()->has_singleton("GodotSharp"))
to check if there's C# support.
Thanks! |
Cherry-picked for 3.4. |
Should this be cherry-picked to |
Cherry-picked for 3.3.4. |
Automatically enable entitlements which are always required to run managed code.