From d044fba87eff79fb8ce199991d78400926a55486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Del=20Pino?= <stephane.delpino44@gmail.com> Date: Mon, 6 Dec 2021 22:33:03 +0100 Subject: [PATCH] Deactivate optimizations for this test file when using clang The file is a bit complex to compile and clang hangs quite a lot during the optimization process (>1h and not compiled yet!). --- tests/test_EmbeddedIDiscreteFunctionOperators.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_EmbeddedIDiscreteFunctionOperators.cpp b/tests/test_EmbeddedIDiscreteFunctionOperators.cpp index 1a85ef8d4..5d91447d9 100644 --- a/tests/test_EmbeddedIDiscreteFunctionOperators.cpp +++ b/tests/test_EmbeddedIDiscreteFunctionOperators.cpp @@ -185,6 +185,10 @@ REQUIRE(is_same); \ } +#ifdef __clang__ +#pragma clang optimize off +#endif // __clang__ + TEST_CASE("EmbeddedIDiscreteFunctionOperators", "[scheme]") { SECTION("binary operators") @@ -2716,3 +2720,7 @@ TEST_CASE("EmbeddedIDiscreteFunctionOperators", "[scheme]") } } } + +#ifdef __clang__ +#pragma clang optimize on +#endif // __clang__ -- GitLab