diff options
| author | Eric Kotato <radrussianrus@gmail.com> | 2022-11-26 00:48:53 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-26 00:48:53 +0300 |
| commit | 6679837ea104fe2b9fa526d454f12229c045f4e3 (patch) | |
| tree | e8589ebcd9becc9f7aaec5b54c7defa82bda6dcd /CMake | |
| parent | b281a719fac90767ed7a03c34577d3d3be98580d (diff) | |
Fix MinGW (32-bit) out of memory error (#2212)
Diffstat (limited to 'CMake')
| -rw-r--r-- | CMake/TdSetUpCompiler.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMake/TdSetUpCompiler.cmake b/CMake/TdSetUpCompiler.cmake index 40c667e32..536c5efb2 100644 --- a/CMake/TdSetUpCompiler.cmake +++ b/CMake/TdSetUpCompiler.cmake @@ -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") |
