mirror of
https://github.com/boostorg/config.git
synced 2025-07-30 04:17:16 +02:00
Merge pull request #388 from boostorg/gcc4-4-fixes
Try and fix gcc-4.4 -fno-rtti failure.
This commit is contained in:
@ -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
11
test/check_memory.cpp
Normal 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>
|
||||
|
Reference in New Issue
Block a user