diff options
Diffstat (limited to 'tools/godotcpp.py')
-rw-r--r-- | tools/godotcpp.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/godotcpp.py b/tools/godotcpp.py index 2e61e2b..d5285dc 100644 --- a/tools/godotcpp.py +++ b/tools/godotcpp.py @@ -266,6 +266,8 @@ def options(opts, env): ) ) + opts.Add(BoolVariable(key="threads", help="Enable threading support", default=env.get("threads", True))) + # compiledb opts.Add( BoolVariable( @@ -438,6 +440,9 @@ def generate(env): tool.generate(env) + if env["threads"]: + env.Append(CPPDEFINES=["THREADS_ENABLED"]) + if env.use_hot_reload: env.Append(CPPDEFINES=["HOT_RELOAD_ENABLED"]) @@ -481,6 +486,8 @@ def generate(env): suffix += "." + env["arch"] if env["ios_simulator"]: suffix += ".simulator" + if not env["threads"]: + suffix += ".nothreads" env["suffix"] = suffix # Exposed when included from another project env["OBJSUFFIX"] = suffix + env["OBJSUFFIX"] |