diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 631a4bb4..1f3a9703 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -61,6 +61,7 @@ jobs: matrix: os: - macos-14 + - macos-15 otp: - 26 openssl: @@ -89,6 +90,7 @@ jobs: env: QUICER_TLS_VER: ${{ matrix.openssl }} run: | + export QUICER_TLS_VER wget https://s3.amazonaws.com/rebar3/rebar3 sudo mv rebar3 /usr/local/bin/ && sudo chmod +x /usr/local/bin/rebar3 erl -eval 'erlang:display(erlang:system_info(system_version)),halt()' diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a976faf..8fd070aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -143,6 +143,19 @@ set(SOURCES # @todo remove -DSO_ATTACH_REUSEPORT_CBPF=51 add_compile_options(-DSO_ATTACH_REUSEPORT_CBPF=51) +if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") + string(REPLACE "." ";" set_version_list ${CMAKE_CXX_COMPILER_VERSION}) + list(GET set_version_list 0 major_version) + # Check for Clang version >= 16.0 + if (major_version GREATER_EQUAL 16) + message(STATUS "Clang version >= 16.0 detected, enabling '-Wno-invalid-unevaluated-string'.") + # Add the warning option + add_compile_options(-Wno-invalid-unevaluated-string) + else() + message(STATUS "Clang version < 16.0, skipping '-Wno-invalid-unevaluated-string'.") + endif() +endif() + # for lttng, quicer_tp.h include_directories(c_src) # for templ files