[Libreoffice-commits] core.git: o3tl/Module_o3tl.mk
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Tue May 26 16:58:27 UTC 2020
o3tl/Module_o3tl.mk | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 8ceb988dcc1457994f3711a9e57d0c4214254a53
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue May 26 16:10:20 2020 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue May 26 18:57:47 2020 +0200
Don't run CompilerTest_o3tl_* with COMPILER_PLUGIN_TOOL=...
...similar to 2228203a8211dea1c8addb98298096a094ec788b "Don't run
CompilerTest_compilerplugins_clang with COMPILER_PLUGIN_TOOL=...", as otherwise
e.g., `make check COMPILER_PLUGIN_TOOL=fakebool` failed with
> o3tl/qa/compile-temporary.cxx:22:8: error: call to deleted function 'temporary'
> f(&o3tl::temporary(n)); // expected-error {{}} expected-note at o3tl/temporary.hxx:* 0+ {{}}
> ^~~~~~~~~~~~~~~
> include/o3tl/temporary.hxx:22:36: note: candidate function [with T = int] has been explicitly deleted
> template <typename T> constexpr T& temporary(T&) = delete;
> ^
> include/o3tl/temporary.hxx:21:36: note: candidate function [with T = int &]
> template <typename T> constexpr T& temporary(T&& x) { return x; }
> ^
Change-Id: I4dfa433708c064413f365375c84b85ced63c8d4e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94871
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/o3tl/Module_o3tl.mk b/o3tl/Module_o3tl.mk
index fa1516bca436..66f7d7a1cda2 100644
--- a/o3tl/Module_o3tl.mk
+++ b/o3tl/Module_o3tl.mk
@@ -23,8 +23,9 @@ $(eval $(call gb_Module_add_targets,o3tl,\
$(eval $(call gb_Module_add_check_targets,o3tl,\
CppunitTest_o3tl_tests \
- $(if $(COM_IS_CLANG),CompilerTest_o3tl_temporary) \
- $(if $(COM_IS_CLANG),CompilerTest_o3tl_unsafe_downcast) \
+ $(if $(COM_IS_CLANG),$(if $(COMPILER_EXTERNAL_TOOL)$(COMPILER_PLUGIN_TOOL),, \
+ CompilerTest_o3tl_temporary \
+ CompilerTest_o3tl_unsafe_downcast)) \
))
# vim: set noet sw=4:
More information about the Libreoffice-commits
mailing list