Skip to content

Commit

Permalink
Merge c8bfa8a into 687517f
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber authored May 10, 2022
2 parents 687517f + c8bfa8a commit 423185c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ jobs:
cxx: clang++-13
install_extra: clang-13 libomp-13-dev
add_llvm_repo: true
- name: build-ubuntu-clang14
cxx: clang++-14
install_extra: clang-14 libomp-14-dev
add_llvm_repo: true
- name: build-ubuntu-icpx
cxx: icpx
install_oneapi: true
Expand All @@ -181,9 +185,9 @@ jobs:
if: matrix.add_llvm_repo
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal main'
sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main'
sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-13 main'
sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-14 main'
- name: install OneAPI
if: matrix.install_oneapi
run: |
Expand Down
4 changes: 2 additions & 2 deletions include/llama/HasRanges.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

#pragma once

// TODO(bgruber): clang 10-13 (libstdc++ from gcc 11.2) fail to compile this currently with the issue described here:
// TODO(bgruber): clang 10-14 (libstdc++ from gcc 11.2) fail to compile this currently with the issue described here:
// https://stackoverflow.com/questions/64300832/why-does-clang-think-gccs-subrange-does-not-satisfy-gccs-ranges-begin-functi
// Intel LLVM compiler is also using the clang frontend
#define CAN_USE_RANGES 0
#if __has_include(<version>)
# include <version>
# if defined(__cpp_concepts) && defined(__cpp_lib_ranges) && (!defined(__clang__) || __clang_major__ >= 14) \
# if defined(__cpp_concepts) && defined(__cpp_lib_ranges) && (!defined(__clang__) || __clang_major__ >= 15) \
&& !defined(__INTEL_LLVM_COMPILER)
# undef CAN_USE_RANGES
# define CAN_USE_RANGES 1
Expand Down
5 changes: 0 additions & 5 deletions tests/iterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,8 @@ TEST_CASE("iterator.different_record_dim")
}
}

// TODO(bgruber): clang 10 and 11 fail to compile this currently with the issue described here:
// https://stackoverflow.com/questions/64300832/why-does-clang-think-gccs-subrange-does-not-satisfy-gccs-ranges-begin-functi
// let's try again with clang 12
// Intel LLVM compiler is also using the clang frontend
#if CAN_USE_RANGES
# include <ranges>

TEST_CASE("ranges")
{
auto test = [](auto extents)
Expand Down

0 comments on commit 423185c

Please sign in to comment.