From e7cc1dfec0509344dced277556e34e226e79fa5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 9 Jan 2021 21:05:12 +0100 Subject: [PATCH] Platform: print Emscripten version in EmscriptenApplicationTest. --- src/Magnum/Platform/Test/EmscriptenApplicationTest.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Magnum/Platform/Test/EmscriptenApplicationTest.cpp b/src/Magnum/Platform/Test/EmscriptenApplicationTest.cpp index dea96c037..4de4bdb09 100644 --- a/src/Magnum/Platform/Test/EmscriptenApplicationTest.cpp +++ b/src/Magnum/Platform/Test/EmscriptenApplicationTest.cpp @@ -155,6 +155,13 @@ EmscriptenApplicationTest::EmscriptenApplicationTest(const Arguments& arguments) .addBooleanOption("exit-immediately").setHelp("exit-immediately", "exit the application immediately from the constructor, to test that the app doesn't run any event handlers after") .parse(arguments.argc, arguments.argv); + /* Useful for bisecting Emscripten regressions, because they happen WAY TOO + OFTEN!!! */ + Debug{} << "Emscripten version:" + << __EMSCRIPTEN_major__ << Debug::nospace << "." << Debug::nospace + << __EMSCRIPTEN_minor__ << Debug::nospace << "." << Debug::nospace + << __EMSCRIPTEN_tiny__ << Debug::nospace; + if(args.isSet("exit-immediately")) { exit(); return;