Bläddra i källkod

compile_files -> file_compilations (It's a getter)

default_compile_flags
vector-of-bool 4 år sedan
förälder
incheckning
9f8cf2dbfa
2 ändrade filer med 9 tillägg och 7 borttagningar
  1. +8
    -6
      src/dds/build/iter_compilations.hpp
  2. +1
    -1
      src/dds/build/plan/archive.hpp

+ 8
- 6
src/dds/build/iter_compilations.hpp Visa fil

@@ -24,12 +24,14 @@ inline auto iter_libraries(const build_plan& plan) {
* Return a range iterating over ever file compilation defined in the given build plan
*/
inline auto iter_compilations(const build_plan& plan) {
auto lib_compiles = //
iter_libraries(plan) //
| ranges::views::transform(&library_plan::archive_plan) //
| ranges::views::filter([&](auto&& opt) { return bool(opt); }) //
| ranges::views::transform([&](auto&& opt) -> auto& { return opt->compile_files(); }) //
| ranges::views::join //
auto lib_compiles = //
iter_libraries(plan) //
| ranges::views::transform(&library_plan::archive_plan) //
| ranges::views::filter([&](auto&& opt) { return bool(opt); }) //
| ranges::views::transform([&](auto&& opt) -> auto& {
return opt->file_compilations();
}) //
| ranges::views::join //
;

auto exe_compiles = //

+ 1
- 1
src/dds/build/plan/archive.hpp Visa fil

@@ -58,7 +58,7 @@ public:
/**
* Get the compilation plans for this library.
*/
auto& compile_files() const noexcept { return _compile_files; }
auto& file_compilations() const noexcept { return _compile_files; }

/**
* Perform the actual archive generation. Expects all compilations to have

Laddar…
Avbryt
Spara