From ab4100768548b45fce9b0eb7083dd8d791cfccd1 Mon Sep 17 00:00:00 2001 From: Zach Laine Date: Thu, 20 Feb 2025 22:24:32 -0600 Subject: [PATCH 1/2] Use BOOST_GCC, defined in config.hpp only for real (non-Clang-emulated) GCC builds, in place of relevant uses of the __GNUC__ macro. --- include/boost/stl_interfaces/fwd.hpp | 4 ++-- include/boost/stl_interfaces/view_adaptor.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/stl_interfaces/fwd.hpp b/include/boost/stl_interfaces/fwd.hpp index fdb883c..2d9ad0d 100644 --- a/include/boost/stl_interfaces/fwd.hpp +++ b/include/boost/stl_interfaces/fwd.hpp @@ -17,14 +17,14 @@ #ifndef BOOST_STL_INTERFACES_DOXYGEN -#if defined(_MSC_VER) || defined(__GNUC__) && __GNUC__ < 8 +#if defined(_MSC_VER) || defined(BOOST_GCC) && __GNUC__ < 8 #define BOOST_STL_INTERFACES_NO_HIDDEN_FRIEND_CONSTEXPR #define BOOST_STL_INTERFACES_HIDDEN_FRIEND_CONSTEXPR #else #define BOOST_STL_INTERFACES_HIDDEN_FRIEND_CONSTEXPR constexpr #endif -#if defined(__GNUC__) && __GNUC__ < 9 +#if defined(BOOST_GCC) && __GNUC__ < 9 #define BOOST_STL_INTERFACES_CONCEPT concept bool #else #define BOOST_STL_INTERFACES_CONCEPT concept diff --git a/include/boost/stl_interfaces/view_adaptor.hpp b/include/boost/stl_interfaces/view_adaptor.hpp index aa84702..a0e2c55 100644 --- a/include/boost/stl_interfaces/view_adaptor.hpp +++ b/include/boost/stl_interfaces/view_adaptor.hpp @@ -24,7 +24,7 @@ #endif #if !BOOST_STL_INTERFACES_USE_CPP23_STD_RANGE_ADAPTOR_CLOSURE && \ - BOOST_STL_INTERFACES_USE_CONCEPTS && defined(__GNUC__) && 12 <= __GNUC__ + BOOST_STL_INTERFACES_USE_CONCEPTS && defined(BOOST_GCC) && 12 <= __GNUC__ #define BOOST_STL_INTERFACES_USE_LIBSTDCPP_GCC12_RANGE_ADAPTOR_CLOSURE 1 #else #define BOOST_STL_INTERFACES_USE_LIBSTDCPP_GCC12_RANGE_ADAPTOR_CLOSURE 0 From 223ffb7e9aeb63ef2925cde40ae25498fb7e25c6 Mon Sep 17 00:00:00 2001 From: Zach Laine Date: Thu, 20 Feb 2025 23:46:47 -0600 Subject: [PATCH 2/2] MacOS 12 -> 13 in Github action builds. --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00c6afd..32f4031 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -188,7 +188,7 @@ jobs: - name: "ASAN=on MAC_OSX=true Job 1" buildtype: "boost" packages: "" - os: "macos-12" + os: "macos-13" cxx: "clang++" sources: "" llvm_os: "" @@ -199,12 +199,12 @@ jobs: - name: "ASAN=on MAC_OSX=true Job 2" buildtype: "boost" packages: "" - os: "macos-12" + os: "macos-13" cxx: "clang++" sources: "" llvm_os: "" llvm_ver: "" - xcode_version: "13.4.1" + xcode_version: "15.2" asan: "on" mac_osx: "true"