Skip to content

Commit

Permalink
Use /bigobj for array tests on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
Mi-La committed Dec 8, 2023
1 parent fd341d9 commit ab239be
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 6 additions & 1 deletion compiler/extensions/cpp/runtime/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,12 @@ set(ZSERIO_CPP_RUNTIME_TEST_HEADERS
)

if (MSVC)
set_property(SOURCE zserio/ReflectableTest.cpp zserio/ArrayTest.cpp APPEND PROPERTY COMPILE_OPTIONS /bigobj)
set_property(
SOURCE
zserio/ReflectableTest.cpp
zserio/ArrayTest.cpp
APPEND
PROPERTY COMPILE_OPTIONS /bigobj)
endif ()

add_executable(${PROJECT_NAME}
Expand Down
9 changes: 9 additions & 0 deletions test/language/array_types/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,15 @@ zserio_add_library(array_types_zs
ZSERIO_OPTIONS -withoutSourcesAmalgamation
)

if (MSVC)
set_property(
SOURCE
${ZSERIO_GEN_DIR}/array_types/arrays_mapping/ArraysMapping.cpp
APPEND
PROPERTY COMPILE_OPTIONS /bigobj
)
endif ()

add_custom_test(array_types
DEPENDS
array_types_zs
Expand Down

0 comments on commit ab239be

Please sign in to comment.