Skip to content

Commit

Permalink
💚 Fix supported compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
yosh-matsuda committed Feb 10, 2024
1 parent b2d5d49 commit 9bba876
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,8 @@ jobs:
matrix:
compiler:
[
{ c: "gcc-11", cxx: "g++-11" },
{ c: "gcc-12", cxx: "g++-12" },
{ c: "gcc-13", cxx: "g++-13" },
{
c: "$(brew --prefix llvm@15)/bin/clang",
cxx: "$(brew --prefix llvm@15)/bin/clang++",
},
{
c: "$(brew --prefix llvm@16)/bin/clang",
cxx: "$(brew --prefix llvm@16)/bin/clang++",
Expand Down Expand Up @@ -107,7 +102,6 @@ jobs:
matrix:
compiler:
[
{ c: "gcc-11", cxx: "g++-11" },
{ c: "gcc-12", cxx: "g++-12" },
{ c: "gcc-13", cxx: "g++-13" },
{
Expand Down
6 changes: 0 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ target_include_directories(${PROJECT_NAME} INTERFACE
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_VERSION})

# for LLVM 15
if(APPLE AND "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 16)
# "_LIBCPP_ENABLE_EXPERIMENTAL" is a workaround to enable ranges library for LLVM15 (at least 15)
target_compile_definitions(${PROJECT_NAME} INTERFACE _LIBCPP_ENABLE_EXPERIMENTAL)
endif()

# for MSVC
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
target_compile_options(${PROJECT_NAME} INTERFACE /Zc:preprocessor)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Ultra-fast and intuitive C++ JSON reader/writer with yyjson backend.
## Requirements

- C++20 compiler with range supports
- LLVM >= 15.0 (full supports after 16.0)
- LLVM >= 16
- GCC >= 12
- clang-cl >= 17 (Windows)
- Visual Studio >= 2022 version 17.5
Expand Down

0 comments on commit 9bba876

Please sign in to comment.