Skip to content

Commit

Permalink
Force threads when compiling web editor instead of erroring out
Browse files Browse the repository at this point in the history
This makes the build process more seamless. A similar option is
already forced for initial memorywhen needed.

(cherry picked from commit da19898)
  • Loading branch information
Calinou authored and akien-mga committed Jan 25, 2022
1 parent d62166f commit 96a325d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions platform/javascript/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ def configure(env):

if env["tools"]:
if not env["threads_enabled"]:
print("Threads must be enabled to build the editor. Please add the 'threads_enabled=yes' option")
sys.exit(255)
print('Note: Forcing "threads_enabled=yes" as it is required for the web editor.')
env["threads_enabled"] = "yes"
if env["initial_memory"] < 64:
print("Editor build requires at least 64MiB of initial memory. Forcing it.")
print('Note: Forcing "initial_memory=64" as it is required for the web editor.')
env["initial_memory"] = 64
else:
# Disable exceptions and rtti on non-tools (template) builds
Expand Down

0 comments on commit 96a325d

Please sign in to comment.