compile-time-regular-expressions
compile-time-regular-expressions copied to clipboard
Azure Pipelines MSVC runs out of memory
trafficstars
Hello,
I've tried to use CTRE in my project, but MSVC was running out of memory.
- My project/branch: https://github.com/bstaletic/ycmd/tree/cxx17
- Azure log: https://dev.azure.com/borisstaletic/3ce92110-caa5-4c49-b8c3-44a433da676b/_apis/build/builds/634/logs/78
Both the debug and the release builds run out of memory. The log above is from a release run. The error itself:
2020-01-22T19:07:32.5996852Z D:\a\1\s\cpp\ctre\ctre\ctre.hpp(3122): fatal error C1002: compiler is out of heap space in pass 2 [C:\Users\VssAdministrator\AppData\Local\Temp\ycm_build_8uffflqo\ycm\ycm_core.vcxproj]
2020-01-22T19:07:33.5333893Z cl : command line error D8040: error creating or communicating with child process [C:\Users\VssAdministrator\AppData\Local\Temp\ycm_build_8uffflqo\ycm\ycm_core.vcxproj]
Steps to run the benchmark:
- Clone the project
- Dependencies: CMake and Python3 in
%PATH%and the MSVC compiler - Execute
python3 benchmark.py --msvc <ver><ver>would be one of{ 15, 16 }, depending on which MSVC is available. Both versions run out of memory.
Additional info:
CTRE is used in exactly one TU. The pattern is used in this loop