From 4f77a82425f60ff928880048dfa79fdd6fba56d8 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 16 Jan 2025 18:16:27 +0100 Subject: Add cyclic dependency detection. --- test/ctor.cc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'test/ctor.cc') diff --git a/test/ctor.cc b/test/ctor.cc index 1951a30..d69b1cf 100644 --- a/test/ctor.cc +++ b/test/ctor.cc @@ -79,6 +79,24 @@ ctor::build_configurations ctorTestConfigs(const ctor::settings& settings) .ldflags = { "-pthread" }, }, }, + { + .type = ctor::target_type::unit_test, + .system = ctor::output_system::build, + .target = "cycle_test", + .sources = { + "cycle_test.cc", + "testmain.cc", + }, + .depends = { "libctor_nomain.a" }, + .flags = { + .cxxflags = { + "-std=c++20", "-O3", "-Wall", "-Werror", + "-I../src", "-Iuunit", + "-DOUTPUT=\"cycle\"", + }, + .ldflags = { "-pthread" }, + }, + }, { .type = ctor::target_type::unit_test, .system = ctor::output_system::build, -- cgit v1.2.3