We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 790aa5b commit 0b5a240Copy full SHA for 0b5a240
1 file changed
Dockerfile
@@ -168,8 +168,9 @@ RUN set -xe && \
168
169
# Precompile test_main.cpp to speed up test builds
170
RUN set -xe && \
171
- echo '#define CATCH_CONFIG_MAIN' > /tmp/test_main.cpp && \
+ echo '#define CATCH_CONFIG_RUNNER' > /tmp/test_main.cpp && \
172
echo '#include <catch2/catch.hpp>' >> /tmp/test_main.cpp && \
173
+ echo 'int main(int argc, char* argv[]) { Catch::Session().run(argc, argv); return 0; }' >> /tmp/test_main.cpp && \
174
g++ -std=c++17 -O2 -c /tmp/test_main.cpp -o /usr/local/lib/libcatch2_main.o && \
175
rm /tmp/test_main.cpp
176
0 commit comments