summaryrefslogtreecommitdiff
path: root/tests/SCsub
diff options
context:
space:
mode:
authorAndrii Doroshenko (Xrayez) <xrayez@gmail.com>2020-12-30 15:48:23 +0200
committerAndrii Doroshenko (Xrayez) <xrayez@gmail.com>2020-12-30 15:48:23 +0200
commit21319feb9c7f4792f0bfa018eaef938279acf756 (patch)
treef626a15ab60d076dbf3b640292d011b4085552fa /tests/SCsub
parentf1cb475d9b1389bed00f252603ea7b05880c83ab (diff)
Increase number of sections in object files for tests with MSVC
Diffstat (limited to 'tests/SCsub')
-rw-r--r--tests/SCsub5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/SCsub b/tests/SCsub
index 7aab28531d..0f3c14f0bd 100644
--- a/tests/SCsub
+++ b/tests/SCsub
@@ -17,6 +17,11 @@ if env["module_gdnative_enabled"]:
if env_tests["platform"] == "windows":
env_tests.Append(CPPDEFINES=[("DOCTEST_THREAD_LOCAL", "")])
+# Increase number of addressable sections in object files
+# due to doctest's heavy use of templates and macros.
+if env_tests.msvc:
+ env_tests.Append(CCFLAGS=["/bigobj"])
+
env_tests.add_source_files(env.tests_sources, "*.cpp")
lib = env_tests.add_library("tests", env.tests_sources)