Fix MinGW (32-bit) out of memory error (#2212)

This commit is contained in:
Eric Kotato 2022-11-26 00:48:53 +03:00 committed by GitHub
parent b281a719fa
commit 6679837ea1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,6 +155,10 @@ function(td_set_up_compiler)
add_cxx_compiler_flag("-Wno-return-stack-address")
endif()
if (MINGW)
add_cxx_compiler_flag("-ftrack-macro-expansion=0")
endif()
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -isystem /usr/include/c++/v1")
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=thread")