summaryrefslogtreecommitdiff
path: root/tests/SCsub
diff options
context:
space:
mode:
Diffstat (limited to 'tests/SCsub')
-rw-r--r--tests/SCsub4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/SCsub b/tests/SCsub
index a2864d805b..7aab28531d 100644
--- a/tests/SCsub
+++ b/tests/SCsub
@@ -6,6 +6,10 @@ env.tests_sources = []
env_tests = env.Clone()
+# Include GDNative headers.
+if env["module_gdnative_enabled"]:
+ env_tests.Append(CPPPATH=["#modules/gdnative/include"])
+
# We must disable the THREAD_LOCAL entirely in doctest to prevent crashes on debugging
# Since we link with /MT thread_local is always expired when the header is used
# So the debugger crashes the engine and it causes weird errors