mirror of
https://github.com/boostorg/unordered.git
synced 2026-08-03 20:24:07 +02:00
avoided OOM during test compilation with GCC/MinGW32 (#353)
* added options to reduce GCC/MinGW32's memory consumption at compilation * tried something stronger * tried something stronger
This commit is contained in:
+7
-1
@@ -136,7 +136,13 @@ foa_tests(SOURCES exception/merge_exception_tests.cpp)
|
||||
|
||||
# CFOA tests
|
||||
|
||||
cfoa_tests(SOURCES cfoa/insert_tests.cpp COMPILE_OPTIONS $<$<CXX_COMPILER_ID:MSVC>:/bigobj>)
|
||||
set(cfoa_insert_test_options $<$<CXX_COMPILER_ID:MSVC>:/bigobj>)
|
||||
|
||||
if(MINGW AND CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||
list(APPEND cfoa_insert_test_options -O0 -g0) # GCC MinGW32 OOMs otherwise
|
||||
endif()
|
||||
|
||||
cfoa_tests(SOURCES cfoa/insert_tests.cpp COMPILE_OPTIONS ${cfoa_insert_test_options})
|
||||
cfoa_tests(SOURCES cfoa/erase_tests.cpp)
|
||||
cfoa_tests(SOURCES cfoa/try_emplace_tests.cpp)
|
||||
cfoa_tests(SOURCES cfoa/emplace_tests.cpp)
|
||||
|
||||
Reference in New Issue
Block a user