From be2184d36d4492e43fbed1f6581fa26636d803ac Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 3 Feb 2026 21:54:09 +0100 Subject: Remove ctor::flags construct and apply tool specific flags (ie. ctor::cxx_flags, ...) directly in build config. Loosen generator requirements, to allow for lambda's directly. --- test/generated_sources_test.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'test/generated_sources_test.cc') diff --git a/test/generated_sources_test.cc b/test/generated_sources_test.cc index 626a102..29a48fc 100644 --- a/test/generated_sources_test.cc +++ b/test/generated_sources_test.cc @@ -43,13 +43,13 @@ public: {"bar.x", ctor::output_file{"foo.cc"}}, {"bar.y", ctor::output_file{"bar.cc"}}, }, - ctor::GeneratorOneToOne([]([[maybe_unused]]const std::string& input, + []([[maybe_unused]]const std::string& input, [[maybe_unused]]const std::string& output, [[maybe_unused]]const ctor::build_configuration& config, [[maybe_unused]]const ctor::settings& settings) { return 0; - }), + }, }, }; }); @@ -93,16 +93,16 @@ public: { ctor::target("foo.cc"), ctor::sources{ - {"bar.x"}, - {"bar.y"}, + "bar.x", + "bar.y", }, - ctor::GeneratorManyToOne([](const std::vector& input, - const std::string& output, - const ctor::build_configuration& config, - const ctor::settings& settings) + []([[maybe_unused]]const std::vector& input, + [[maybe_unused]]const std::string& output, + [[maybe_unused]]const ctor::build_configuration& config, + [[maybe_unused]]const ctor::settings& settings) { return 0; - }), + }, }, }; }); -- cgit v1.2.3