mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-10-07 13:11:02 +02:00
Compare commits
23 Commits
boost-1.86
...
feature/mo
Author | SHA1 | Date | |
---|---|---|---|
|
e9c54b2430 | ||
|
17e299f11e | ||
|
71902a7bdb | ||
|
e9790f99f7 | ||
|
d4c605e6ff | ||
|
f5152b0904 | ||
|
7caada352c | ||
|
11e56a4ad9 | ||
|
c33504189a | ||
|
960741cb2e | ||
|
c8ef3e2276 | ||
|
72c25383d5 | ||
|
6b826f1139 | ||
|
591d0e0728 | ||
|
e86015f9f6 | ||
|
4f9487d0f3 | ||
|
0925dcce4e | ||
|
6bc7ec7e6b | ||
|
fc0eeeffa6 | ||
|
4df3174d4a | ||
|
1a51e0f02c | ||
|
ac9154d1e5 | ||
|
788313fda2 |
@@ -32,6 +32,8 @@ local linux_pipeline(name, image, environment, packages = "", sources = [], arch
|
|||||||
commands:
|
commands:
|
||||||
[
|
[
|
||||||
'set -e',
|
'set -e',
|
||||||
|
'uname -a',
|
||||||
|
'echo $DRONE_STAGE_MACHINE',
|
||||||
'wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -',
|
'wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -',
|
||||||
] +
|
] +
|
||||||
(if sources != [] then [ ('apt-add-repository "' + source + '"') for source in sources ] else []) +
|
(if sources != [] then [ ('apt-add-repository "' + source + '"') for source in sources ] else []) +
|
||||||
@@ -207,13 +209,6 @@ local windows_pipeline(name, image, environment, arch = "amd64") =
|
|||||||
"g++-13-multilib",
|
"g++-13-multilib",
|
||||||
),
|
),
|
||||||
|
|
||||||
linux_pipeline(
|
|
||||||
"Linux 23.04 GCC 13 64 ASAN",
|
|
||||||
"cppalliance/droneubuntu2304:1",
|
|
||||||
{ TOOLSET: 'gcc', COMPILER: 'g++-13', CXXSTD: '03,11,14,17,20,2b', ADDRMD: '64' } + asan,
|
|
||||||
"g++-13-multilib",
|
|
||||||
),
|
|
||||||
|
|
||||||
linux_pipeline(
|
linux_pipeline(
|
||||||
"Linux 23.04 GCC 13 32 UBSAN",
|
"Linux 23.04 GCC 13 32 UBSAN",
|
||||||
"cppalliance/droneubuntu2304:1",
|
"cppalliance/droneubuntu2304:1",
|
||||||
@@ -228,6 +223,20 @@ local windows_pipeline(name, image, environment, arch = "amd64") =
|
|||||||
"g++-13-multilib",
|
"g++-13-multilib",
|
||||||
),
|
),
|
||||||
|
|
||||||
|
linux_pipeline(
|
||||||
|
"Linux 24.04 GCC 14 UBSAN",
|
||||||
|
"cppalliance/droneubuntu2404:1",
|
||||||
|
{ TOOLSET: 'gcc', COMPILER: 'g++-14', CXXSTD: '03,11,14,17,20,2b' } + ubsan,
|
||||||
|
"g++-14-multilib",
|
||||||
|
),
|
||||||
|
|
||||||
|
linux_pipeline(
|
||||||
|
"Linux 24.04 GCC 14 ASAN",
|
||||||
|
"cppalliance/droneubuntu2404:1",
|
||||||
|
{ TOOLSET: 'gcc', COMPILER: 'g++-14', CXXSTD: '03,11,14,17,20,2b' } + asan,
|
||||||
|
"g++-14-multilib",
|
||||||
|
),
|
||||||
|
|
||||||
linux_pipeline(
|
linux_pipeline(
|
||||||
"Linux 16.04 Clang 3.5",
|
"Linux 16.04 Clang 3.5",
|
||||||
"cppalliance/droneubuntu1604:1",
|
"cppalliance/droneubuntu1604:1",
|
||||||
@@ -368,6 +377,20 @@ local windows_pipeline(name, image, environment, arch = "amd64") =
|
|||||||
"clang-17",
|
"clang-17",
|
||||||
),
|
),
|
||||||
|
|
||||||
|
linux_pipeline(
|
||||||
|
"Linux 24.04 Clang 18 UBSAN",
|
||||||
|
"cppalliance/droneubuntu2404:1",
|
||||||
|
{ TOOLSET: 'clang', COMPILER: 'clang++-18', CXXSTD: '03,11,14,17,20,2b' } + ubsan,
|
||||||
|
"clang-18",
|
||||||
|
),
|
||||||
|
|
||||||
|
linux_pipeline(
|
||||||
|
"Linux 24.04 Clang 18 ASAN",
|
||||||
|
"cppalliance/droneubuntu2404:1",
|
||||||
|
{ TOOLSET: 'clang', COMPILER: 'clang++-18', CXXSTD: '03,11,14,17,20,2b' } + asan,
|
||||||
|
"clang-18",
|
||||||
|
),
|
||||||
|
|
||||||
macos_pipeline(
|
macos_pipeline(
|
||||||
"MacOS 10.15 Xcode 12.2 UBSAN",
|
"MacOS 10.15 Xcode 12.2 UBSAN",
|
||||||
{ TOOLSET: 'clang', COMPILER: 'clang++', CXXSTD: '03,11,14,1z' } + ubsan,
|
{ TOOLSET: 'clang', COMPILER: 'clang++', CXXSTD: '03,11,14,1z' } + ubsan,
|
||||||
|
26
build.jam
Normal file
26
build.jam
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
# Copyright 2023-2024 René Ferdinand Rivera Morell
|
||||||
|
# Copyright 2024 Peter Dimov
|
||||||
|
# Distributed under the Boost Software License, Version 1.0.
|
||||||
|
# https://www.boost.org/LICENSE_1_0.txt
|
||||||
|
|
||||||
|
require-b2 5.2 ;
|
||||||
|
|
||||||
|
constant boost_dependencies :
|
||||||
|
/boost/assert//boost_assert
|
||||||
|
/boost/config//boost_config
|
||||||
|
/boost/core//boost_core
|
||||||
|
/boost/move//boost_move
|
||||||
|
/boost/static_assert//boost_static_assert
|
||||||
|
/boost/throw_exception//boost_throw_exception
|
||||||
|
/boost/type_traits//boost_type_traits
|
||||||
|
;
|
||||||
|
|
||||||
|
project /boost/smart_ptr ;
|
||||||
|
|
||||||
|
explicit
|
||||||
|
[ alias boost_smart_ptr : : : : <include>include <library>$(boost_dependencies) ]
|
||||||
|
[ alias all : boost_smart_ptr test ]
|
||||||
|
;
|
||||||
|
|
||||||
|
call-if : boost-library smart_ptr
|
||||||
|
;
|
25
test/Jamfile
25
test/Jamfile
@@ -7,17 +7,25 @@
|
|||||||
# accompanying file LICENSE_1_0.txt or copy at
|
# accompanying file LICENSE_1_0.txt or copy at
|
||||||
# http://www.boost.org/LICENSE_1_0.txt)
|
# http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
require-b2 5.0.1 ;
|
||||||
|
import-search /boost/config/checks ;
|
||||||
|
import config : requires ;
|
||||||
import testing ;
|
import testing ;
|
||||||
import ../../config/checks/config : requires ;
|
|
||||||
|
|
||||||
project
|
project
|
||||||
: requirements
|
: requirements
|
||||||
|
<library>/boost/smart_ptr//boost_smart_ptr
|
||||||
|
<library>/boost/align//boost_align
|
||||||
<toolset>gcc:<cxxflags>-Wno-non-virtual-dtor
|
<toolset>gcc:<cxxflags>-Wno-non-virtual-dtor
|
||||||
<toolset>gcc:<cxxflags>-Wno-deprecated-declarations
|
<toolset>gcc:<cxxflags>-Wno-deprecated-declarations
|
||||||
#<toolset>gcc:<cxxflags>-Wno-delete-non-virtual-dtor (not in 4.4/4.6)
|
#<toolset>gcc:<cxxflags>-Wno-delete-non-virtual-dtor (not in 4.4/4.6)
|
||||||
;
|
;
|
||||||
|
|
||||||
local cnhash = [ requires cxx11_decltype cxx11_noexcept ] <toolset>gcc-4.6:<build>no ;
|
local cnhash =
|
||||||
|
|
||||||
|
<library>/boost/container_hash//boost_container_hash
|
||||||
|
[ requires cxx11_decltype cxx11_noexcept ]
|
||||||
|
<toolset>gcc-4.6:<build>no ;
|
||||||
|
|
||||||
# quick test (for CI)
|
# quick test (for CI)
|
||||||
run quick.cpp ;
|
run quick.cpp ;
|
||||||
@@ -79,7 +87,8 @@ run shared_ptr_convertible_test.cpp ;
|
|||||||
run wp_convertible_test.cpp ;
|
run wp_convertible_test.cpp ;
|
||||||
run ip_convertible_test.cpp ;
|
run ip_convertible_test.cpp ;
|
||||||
run allocate_shared_test.cpp ;
|
run allocate_shared_test.cpp ;
|
||||||
run sp_atomic_test.cpp ;
|
run sp_atomic_test.cpp
|
||||||
|
: : : <library>/boost/atomic//boost_atomic ;
|
||||||
run esft_void_test.cpp ;
|
run esft_void_test.cpp ;
|
||||||
run esft_second_ptr_test.cpp ;
|
run esft_second_ptr_test.cpp ;
|
||||||
run make_shared_esft_test.cpp ;
|
run make_shared_esft_test.cpp ;
|
||||||
@@ -251,7 +260,8 @@ compile make_shared_msvc_test.cpp ;
|
|||||||
|
|
||||||
compile lwm_win32_cs_test.cpp ;
|
compile lwm_win32_cs_test.cpp ;
|
||||||
|
|
||||||
run atomic_sp_test.cpp ;
|
run atomic_sp_test.cpp
|
||||||
|
: : : <library>/boost/atomic//boost_atomic ;
|
||||||
|
|
||||||
run sp_constexpr_test.cpp ;
|
run sp_constexpr_test.cpp ;
|
||||||
run sp_constexpr_test2.cpp ;
|
run sp_constexpr_test2.cpp ;
|
||||||
@@ -405,7 +415,12 @@ run lsp_hash_test.cpp
|
|||||||
: : : $(cnhash) ;
|
: : : $(cnhash) ;
|
||||||
run lsp_hash_test2.cpp ;
|
run lsp_hash_test2.cpp ;
|
||||||
|
|
||||||
local MT = <threading>multi [ requires cxx11_decltype cxx11_noexcept ] <toolset>gcc-4.6:<build>no ;
|
local MT =
|
||||||
|
|
||||||
|
<threading>multi
|
||||||
|
<library>/boost/bind//boost_bind
|
||||||
|
[ requires cxx11_decltype cxx11_noexcept ]
|
||||||
|
<toolset>gcc-4.6:<build>no ;
|
||||||
|
|
||||||
run atomic_count_mt_test.cpp
|
run atomic_count_mt_test.cpp
|
||||||
: : : $(MT) ;
|
: : : $(MT) ;
|
||||||
|
@@ -15,4 +15,4 @@ target_link_libraries(quick Boost::smart_ptr Boost::core)
|
|||||||
enable_testing()
|
enable_testing()
|
||||||
add_test(quick quick)
|
add_test(quick quick)
|
||||||
|
|
||||||
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -C $<CONFIG>)
|
add_custom_target(check VERBATIM COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -C $<CONFIG>)
|
||||||
|
@@ -21,4 +21,4 @@ target_link_libraries(quick Boost::smart_ptr Boost::core)
|
|||||||
enable_testing()
|
enable_testing()
|
||||||
add_test(quick quick)
|
add_test(quick quick)
|
||||||
|
|
||||||
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -C $<CONFIG>)
|
add_custom_target(check VERBATIM COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -C $<CONFIG>)
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include <boost/intrusive_ptr.hpp>
|
#include <boost/intrusive_ptr.hpp>
|
||||||
#include <boost/functional/hash.hpp>
|
#include <boost/container_hash/hash.hpp>
|
||||||
#include <boost/core/lightweight_test.hpp>
|
#include <boost/core/lightweight_test.hpp>
|
||||||
|
|
||||||
class base
|
class base
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
// https://www.boost.org/LICENSE_1_0.txt
|
// https://www.boost.org/LICENSE_1_0.txt
|
||||||
|
|
||||||
#include <boost/smart_ptr/local_shared_ptr.hpp>
|
#include <boost/smart_ptr/local_shared_ptr.hpp>
|
||||||
#include <boost/functional/hash.hpp>
|
#include <boost/container_hash/hash.hpp>
|
||||||
#include <boost/core/lightweight_test.hpp>
|
#include <boost/core/lightweight_test.hpp>
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
#include <boost/functional/hash.hpp>
|
#include <boost/container_hash/hash.hpp>
|
||||||
#include <boost/core/lightweight_test.hpp>
|
#include <boost/core/lightweight_test.hpp>
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
#include <boost/functional/hash.hpp>
|
#include <boost/container_hash/hash.hpp>
|
||||||
#include <boost/core/lightweight_test.hpp>
|
#include <boost/core/lightweight_test.hpp>
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
#include <boost/functional/hash.hpp>
|
#include <boost/container_hash/hash.hpp>
|
||||||
#include <boost/core/lightweight_test.hpp>
|
#include <boost/core/lightweight_test.hpp>
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
#include <boost/weak_ptr.hpp>
|
#include <boost/weak_ptr.hpp>
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
#include <boost/functional/hash.hpp>
|
#include <boost/container_hash/hash.hpp>
|
||||||
#include <boost/core/lightweight_test.hpp>
|
#include <boost/core/lightweight_test.hpp>
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
Reference in New Issue
Block a user