You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Increase number of sections in object files for tests with MSVC
This commit is contained in:
@@ -17,6 +17,11 @@ if env["module_gdnative_enabled"]:
|
|||||||
if env_tests["platform"] == "windows":
|
if env_tests["platform"] == "windows":
|
||||||
env_tests.Append(CPPDEFINES=[("DOCTEST_THREAD_LOCAL", "")])
|
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")
|
env_tests.add_source_files(env.tests_sources, "*.cpp")
|
||||||
|
|
||||||
lib = env_tests.add_library("tests", env.tests_sources)
|
lib = env_tests.add_library("tests", env.tests_sources)
|
||||||
|
|||||||
Reference in New Issue
Block a user