소스 검색

compile_files -> file_compilations (It's a getter)

default_compile_flags
vector-of-bool 4 년 전
부모
커밋
9f8cf2dbfa
2개의 변경된 파일9개의 추가작업 그리고 7개의 파일을 삭제
  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 파일 보기

@@ -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 파일 보기

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

Loading…
취소
저장