Browse Source

Merge pull request #44808 from Xrayez/tests-bigobj

Increase number of sections in object files for tests with MSVC
Rémi Verschelde 4 years ago
parent
commit
b24f9f2d8f
1 changed files with 5 additions and 0 deletions
  1. 5 0
      tests/SCsub

+ 5 - 0
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)