Compare commits

..

8 Commits

Author SHA1 Message Date
jzmaddock 9b8e3bcabb Add C++23 feature test macro support. 2023-10-13 19:11:46 +01:00
jzmaddock 29c39d4585 Merge pull request #484 from boostorg/cpp23
Add C++23 header macros.
2023-09-10 10:33:05 +01:00
jzmaddock dd7fa7f902 Update docs for C++23 macros.
[CI SKIP]
2023-09-10 10:32:26 +01:00
jzmaddock 6ec687639f Remove XCode-9.4 testing as it appears to be no longer supported. 2023-09-09 19:46:53 +01:00
jzmaddock c23bb933a9 Minor corrections. 2023-09-09 19:43:50 +01:00
jzmaddock ce665092fe Add C++23 header macros. 2023-09-09 19:20:12 +01:00
jzmaddock 33b12777cf Merge pull request #481 from boostorg/serialization_issue_271
Add msvc support for [[maybe_unused]] attribute.
2023-08-26 09:29:08 +01:00
jzmaddock 015247ccd0 Add msvc support for [[maybe_unused]] attribute.
Fixes: https://github.com/boostorg/serialization/issues/271

Also removes failing cuda+clang test as it's an inscrutable system setup issue.
2023-08-25 18:54:49 +01:00
2 changed files with 11 additions and 61 deletions
+9 -53
View File
@@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
compiler: [ g++-11, g++-12, g++-13 ]
compiler: [ g++-11, g++-12, clang++-14 ]
steps:
- uses: actions/checkout@v3
with:
@@ -34,7 +34,7 @@ jobs:
- name: Add repository
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
- name: Install packages
run: sudo apt install g++-11 g++-12 g++-13
run: sudo apt install g++-11 g++-12 clang-14
- name: Checkout main boost
run: git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root
- name: Update Dependencies
@@ -63,7 +63,7 @@ jobs:
strategy:
fail-fast: false
matrix:
compiler: [ clang++-15 ]
compiler: [ clang++-11, clang++-12, clang++-13 ]
steps:
- uses: actions/checkout@v3
with:
@@ -78,7 +78,7 @@ jobs:
- name: Add repository
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
- name: Install packages
run: sudo apt install clang-15
run: sudo apt install clang-11 clang-12 clang-13
- name: Checkout main boost
run: git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root
- name: Update Dependencies
@@ -146,50 +146,6 @@ jobs:
- name: Test
run: ../../../b2 toolset=$TOOLSET cxxstd=03,11,14,17,2a
working-directory: ../boost-root/libs/config/test
ubuntu-focal-clang:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
compiler: [ clang++-11, clang++-12 ]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- uses: mstachniuk/ci-skip@v1
with:
commit-filter: '[skip ci];[ci skip];[CI SKIP];[SKIP CI];***CI SKIP***;***SKIP CI***;[windows];[Windows];[WINDOWS];[apple];[Apple];[APPLE]'
commit-filter-separator: ';'
fail-fast: true
- name: Set TOOLSET
run: echo ${{ matrix.compiler }} | awk '/^g/ { print "TOOLSET=gcc" } /^clang/ { print "TOOLSET=clang" }' >> $GITHUB_ENV
- name: Add repository
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
- name: Install packages
run: sudo apt install clang-11 clang-12
- name: Checkout main boost
run: git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root
- name: Update Dependencies
run: git submodule update --init tools/build tools/boost_install libs/headers libs/detail libs/core libs/assert libs/type_traits
working-directory: ../boost-root
- name: Copy files
run: cp -r $GITHUB_WORKSPACE/* libs/config
working-directory: ../boost-root
- name: Bootstrap
run: ./bootstrap.sh
working-directory: ../boost-root
- name: Generate headers
run: ./b2 headers
working-directory: ../boost-root
- name: Generate user config
run: 'echo "using $TOOLSET : : ${{ matrix.compiler }} ;" > ~/user-config.jam'
working-directory: ../boost-root
- name: Config info
run: ../../../b2 print_config_info toolset=$TOOLSET cxxstd=03,11,14,17,2a
working-directory: ../boost-root/libs/config/test
- name: Test
run: ../../../b2 toolset=$TOOLSET cxxstd=03,11,14,17,2a
working-directory: ../boost-root/libs/config/test
macos_11:
runs-on: macos-11
strategy:
@@ -293,10 +249,10 @@ jobs:
run: b2 headers
working-directory: ../boost-root
- name: Config info
run: ..\..\..\b2 print_config_info cxxstd=14,latest address-model=64 toolset=msvc-14.0
run: ..\..\..\b2 print_config_info cxxstd=14,17 address-model=64 toolset=msvc-14.0
working-directory: ../boost-root/libs/config/test
- name: Test
run: ..\..\..\b2 --hash address-model=64 cxxstd=14,latest toolset=msvc-14.0
run: ..\..\..\b2 --hash address-model=64 cxxstd=14,17 toolset=msvc-14.0
working-directory: ../boost-root/libs/config/test
windows_msvc_14_2:
runs-on: windows-2019
@@ -331,10 +287,10 @@ jobs:
run: b2 headers
working-directory: ../boost-root
- name: Config info
run: ..\..\..\b2 print_config_info cxxstd=14,17,20,latest address-model=64 toolset=msvc-14.2
run: ..\..\..\b2 print_config_info cxxstd=14,17,latest address-model=64 toolset=msvc-14.2
working-directory: ../boost-root/libs/config/test
- name: Test
run: ..\..\..\b2 --hash address-model=64 cxxstd=14,17,20,latest toolset=msvc-14.2
run: ..\..\..\b2 --hash address-model=64 cxxstd=14,17,latest toolset=msvc-14.2
working-directory: ../boost-root/libs/config/test
windows_msvc_14_3:
runs-on: windows-2022
@@ -369,7 +325,7 @@ jobs:
run: b2 headers
working-directory: ../boost-root
- name: Config info
run: ..\..\..\b2 print_config_info cxxstd=14,17,20,latest address-model=64 toolset=msvc-14.3
run: ..\..\..\b2 print_config_info cxxstd=14,17,latest address-model=64 toolset=msvc-14.3
working-directory: ../boost-root/libs/config/test
- name: Test
run: ..\..\..\b2 --hash address-model=64 cxxstd=14,17,20,latest toolset=msvc-14.3
@@ -2,7 +2,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt)
#if !defined(__apple_build_version__)
#if !defined(__APPLE__)
# define BOOST_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__ % 100)
@@ -11,13 +11,7 @@
// https://en.wikipedia.org/wiki/Xcode#Toolchain_versions
# if BOOST_CLANG_REPORTED_VERSION >= 150000
# define BOOST_CLANG_VERSION 160000
# elif BOOST_CLANG_REPORTED_VERSION >= 140003
# define BOOST_CLANG_VERSION 150000
# elif BOOST_CLANG_REPORTED_VERSION >= 140000
# if BOOST_CLANG_REPORTED_VERSION >= 140000
# define BOOST_CLANG_VERSION 140000
# elif BOOST_CLANG_REPORTED_VERSION >= 130100