Try and fix gcc-4.4 -fno-rtti failure.

This commit is contained in:
jzmaddock
2021-07-06 19:56:50 +01:00
parent cfc6545ce9
commit 42cff96876
2 changed files with 14 additions and 0 deletions

View File

@ -32,6 +32,8 @@ exe has_pthread_lib : config_info.cpp pthread ;
explicit has_pthread_lib ;
exe has_rt_lib : config_info.cpp rt ;
explicit has_rt_lib ;
obj check_memory : check_memory.cpp ;
explicit check_memory ;
test-suite config
:
@ -65,6 +67,7 @@ test-suite config
[ check-target-builds has_atomic_lib : <source>atomic ]
[ check-target-builds has_pthread_lib : <source>pthread ]
[ check-target-builds has_rt_lib : <source>rt ]
[ check-target-builds check_memory : : <build>no ]
: config_test_no_rtti
]
[ run config_test.cpp

11
test/check_memory.cpp Normal file
View File

@ -0,0 +1,11 @@
// (C) Copyright John Maddock 2021.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Quick santity check that <memory> is OK. It was broken for some old gcc versions and -fno-rtti
//
#include <memory>