Parcourir la source

compile_files -> file_compilations (It's a getter)

default_compile_flags
vector-of-bool il y a 4 ans
Parent
révision
9f8cf2dbfa
2 fichiers modifiés avec 9 ajouts et 7 suppressions
  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 Voir le fichier

@@ -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 Voir le fichier

@@ -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

Chargement…
Annuler
Enregistrer