diff options
| author | Bent Bisballe Nyeng <deva@aasimon.org> | 2026-02-03 21:54:09 +0100 |
|---|---|---|
| committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2026-02-03 21:54:09 +0100 |
| commit | be2184d36d4492e43fbed1f6581fa26636d803ac (patch) | |
| tree | 4eea32bd931a5be61fa7b370def8817d6a4bcc35 /test/generated_sources_test.cc | |
| parent | f66ab53b9380a5367e24727df620d6620ab031f7 (diff) | |
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.new_syntax
Diffstat (limited to 'test/generated_sources_test.cc')
| -rw-r--r-- | test/generated_sources_test.cc | 18 |
1 files changed, 9 insertions, 9 deletions
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<std::string>& input, - const std::string& output, - const ctor::build_configuration& config, - const ctor::settings& settings) + []([[maybe_unused]]const std::vector<std::string>& input, + [[maybe_unused]]const std::string& output, + [[maybe_unused]]const ctor::build_configuration& config, + [[maybe_unused]]const ctor::settings& settings) { return 0; - }), + }, }, }; }); |
