From a38c6682e4fb1f45aa1f37d10c2480aa517ea3bc Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 21 Jan 2023 16:31:54 +0100 Subject: Make sure libctor itself is built in the 'build' system and not 'host' system. Only detect tooling for the system/tools actually required in the tasks. --- test/ctor.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/ctor.cc b/test/ctor.cc index ea5ae1e..ccf1c31 100644 --- a/test/ctor.cc +++ b/test/ctor.cc @@ -11,6 +11,7 @@ ctor::build_configurations ctorTestConfigs(const ctor::settings& settings) { { .type = ctor::target_type::unit_test, + .system = ctor::output_system::build, .target = "testprog", .sources = { "testprog.cc", @@ -23,6 +24,7 @@ ctor::build_configurations ctorTestConfigs(const ctor::settings& settings) }, { .type = ctor::target_type::unit_test, + .system = ctor::output_system::build, .target = "execute_test", .sources = { "execute_test.cc", @@ -42,6 +44,7 @@ ctor::build_configurations ctorTestConfigs(const ctor::settings& settings) }, { .type = ctor::target_type::unit_test, + .system = ctor::output_system::build, .target = "tasks_test", .sources = { "tasks_test.cc", @@ -59,6 +62,7 @@ ctor::build_configurations ctorTestConfigs(const ctor::settings& settings) }, { .type = ctor::target_type::unit_test, + .system = ctor::output_system::build, .target = "source_type_test", .sources = { "source_type_test.cc", @@ -76,6 +80,7 @@ ctor::build_configurations ctorTestConfigs(const ctor::settings& settings) }, { .type = ctor::target_type::unit_test, + .system = ctor::output_system::build, .target = "tools_test", .sources = { "tools_test.cc", @@ -94,6 +99,7 @@ ctor::build_configurations ctorTestConfigs(const ctor::settings& settings) }, { .type = ctor::target_type::unit_test_library, + .system = ctor::output_system::build, .target = "libctor_nomain.a", .sources = { "../src/build.cc", -- cgit v1.2.3