diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2020-12-30 15:25:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-30 15:25:33 +0100 |
commit | b24f9f2d8f060533f2dff16c73bf93c94f23fbdf (patch) | |
tree | 38bba67efa271eed9c7ca447a74d55050b94c8f7 | |
parent | 49ff4b41b7786b29b9fab31ee5cb37d074dd93cf (diff) | |
parent | 21319feb9c7f4792f0bfa018eaef938279acf756 (diff) |
Merge pull request #44808 from Xrayez/tests-bigobj
Increase number of sections in object files for tests with MSVC
-rw-r--r-- | tests/SCsub | 5 |
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) |