-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Disabling regex module for custom web export throws undefined symbol error #45462
Comments
Also happens on Linux:
Apparently |
This patch fixes the compilation issue in 3.2, but BBCode parsing gets disabled. diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp
index 7cde6bbdc5..6741777abe 100644
--- a/scene/gui/rich_text_label.cpp
+++ b/scene/gui/rich_text_label.cpp
@@ -2930,6 +2930,7 @@ Ref<RichTextEffect> RichTextLabel::_get_custom_effect_by_code(String p_bbcode_id
Dictionary RichTextLabel::parse_expressions_for_values(Vector<String> p_expressions) {
Dictionary d = Dictionary();
+#ifdef MODULE_REGEX_ENABLED
for (int i = 0; i < p_expressions.size(); i++) {
String expression = p_expressions[i];
@@ -2982,6 +2983,7 @@ Dictionary RichTextLabel::parse_expressions_for_values(Vector<String> p_expressi
d[key] = a[0];
}
}
+#endif
return d;
}
|
The problem appears to persist in 3.3.2-stable (commit 7610409) on Linux. I was trying to compile an optimized export template using the following command:
The error also presented when compiling with LLVM/LLD, but the error reports below are from the above command which used GCC:
|
This should've been fixed already (likely on both branches). Can someone check? |
I can confirm that 3.4.4-stable now compiles without errors with the regex module disabled. |
Godot version:
3.2.3
OS/device including version:
Windows 10
Issue description:
When disabling regex module for web export, there is an undefined symbol error.
To be more specific, when advanced_gui is enabled and regex is disabled, the error happens.
Steps to reproduce:
Type "scons platform=javascript tools=no target=release_debug module_regex_enabled=no"
Minimal reproduction project:
The text was updated successfully, but these errors were encountered: