Skip to content

Commit

Permalink
llvm 18 update (#59)
Browse files Browse the repository at this point in the history
Update vcpkg
  • Loading branch information
koolkdev authored Apr 23, 2024
1 parent 0503e80 commit 4f07f2a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ jobs:
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 17
sudo apt install libc++-17-dev
echo "CC=clang-17" >> $GITHUB_ENV
echo "CXX=clang++-17" >> $GITHUB_ENV
sudo ./llvm.sh 18
sudo apt install libc++-18-dev
echo "CC=clang-18" >> $GITHUB_ENV
echo "CXX=clang++-18" >> $GITHUB_ENV
shell: bash
if: matrix.platform == 'ubuntu-latest' && matrix.compiler == 'llvm'

Expand Down
3 changes: 0 additions & 3 deletions src/ftrees.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,6 @@ class FTrees {
: ftrees_(CreateFTreeArray(std::move(block), std::make_index_sequence<kSizeBuckets.size()>{})) {}

size_t size() const {
// TODO: llvm fold support
// return *std::ranges::fold_right_last(
// ftrees_ | std::views::transform([](const FTree& ftree) { return ftree.size(); }), std::plus<>());
return std::accumulate(ftrees_.begin(), ftrees_.end(), size_t{0},
[](auto acc, const FTree& ftree) { return acc + ftree.size(); });
}
Expand Down
2 changes: 1 addition & 1 deletion vcpkg
Submodule vcpkg updated 5149 files

0 comments on commit 4f07f2a

Please sign in to comment.