Skip to content

Commit

Permalink
Merge pull request #136 from tcbrindle/pr/llvm_17_mac_ci
Browse files Browse the repository at this point in the history
Add Clang 17 on MacOS to CI
  • Loading branch information
tcbrindle authored Nov 27, 2023
2 parents 1c128b5 + 23fd653 commit bc97bee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,22 @@ jobs:
strategy:
matrix:
build_type: [Debug, Release]
cxx: [g++-12, g++-13, /usr/local/opt/llvm/bin/clang++]
cxx: [g++-12, g++-13,
/usr/local/opt/llvm@16/bin/clang++,
/usr/local/opt/llvm@17/bin/clang++]
include:
- cxx: g++-12
install: brew install gcc@12 ninja
- cxx: g++-13
install: |
brew update
brew install gcc@13 ninja
- cxx: /usr/local/opt/llvm/bin/clang++
- cxx: /usr/local/opt/llvm@16/bin/clang++
install: |
brew install llvm@16 ninja
- cxx: /usr/local/opt/llvm@17/bin/clang++
install: |
brew install llvm@17 ninja
steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions example/calendar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ constexpr auto max_weeks_in_month = 6;
constexpr auto col_sep = " ";
constexpr auto row_sep = ' ';

// Workaround: libc++16 does not support C++20 chrono::time_point::operator++
#if defined _LIBCPP_VERSION and _LIBCPP_VERSION < 170000
// Workaround: libc++17 does not support C++20 chrono::time_point::operator++
#if defined _LIBCPP_VERSION and _LIBCPP_VERSION < 180000
namespace std::chrono {
sys_days& operator++(sys_days& d) {
return d += days{1};
Expand Down

0 comments on commit bc97bee

Please sign in to comment.