mirror of
https://github.com/boostorg/type_index.git
synced 2025-07-31 12:57:17 +02:00
Disable RTTI in Jamfile in a clever way
Disable RTTI in Jamfile and assert that no-rtti tests are really run with RTTI disabled
This commit is contained in:
@ -18,24 +18,8 @@ test-suite type_index
|
||||
[ run type_index_test.cpp ]
|
||||
[ run template_index_test.cpp ]
|
||||
[ run testing_both.cpp ]
|
||||
[ run testing_both_no_rtti.cpp : : : <define>BOOST_NO_RTTI
|
||||
<toolset>gcc-4.3:<cxxflags>-fno-rtti
|
||||
<toolset>gcc-4.4:<cxxflags>-fno-rtti
|
||||
<toolset>gcc-4.5:<cxxflags>-fno-rtti
|
||||
<toolset>gcc-4.6:<cxxflags>-fno-rtti
|
||||
<toolset>gcc-4.7:<cxxflags>-fno-rtti
|
||||
<toolset>gcc-4.8:<cxxflags>-fno-rtti
|
||||
<toolset>clang:<cxxflags>-fno-rtti
|
||||
]
|
||||
[ run testing_both_no_rtti.cpp : : : <rtti>off ]
|
||||
[ run testing_minimal.cpp ]
|
||||
[ run testing_minimal_no_rtti.cpp : : : <define>BOOST_NO_RTTI
|
||||
<toolset>gcc-4.3:<cxxflags>-fno-rtti
|
||||
<toolset>gcc-4.4:<cxxflags>-fno-rtti
|
||||
<toolset>gcc-4.5:<cxxflags>-fno-rtti
|
||||
<toolset>gcc-4.6:<cxxflags>-fno-rtti
|
||||
<toolset>gcc-4.7:<cxxflags>-fno-rtti
|
||||
<toolset>gcc-4.8:<cxxflags>-fno-rtti
|
||||
<toolset>clang:<cxxflags>-fno-rtti
|
||||
]
|
||||
[ run testing_minimal_no_rtti.cpp : : : <rtti>off ]
|
||||
;
|
||||
|
||||
|
@ -9,6 +9,10 @@
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <boost/type_index.hpp>
|
||||
|
||||
#ifndef BOOST_NO_RTTI
|
||||
#error "This test must be run with disabled RTTI"
|
||||
#endif
|
||||
|
||||
namespace my_namespace1 {
|
||||
class my_class{};
|
||||
}
|
||||
|
@ -9,6 +9,10 @@
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <boost/type_index/type_index_minimal.hpp>
|
||||
|
||||
#ifndef BOOST_NO_RTTI
|
||||
#error "This test must be run with disabled RTTI"
|
||||
#endif
|
||||
|
||||
namespace my_namespace1 {
|
||||
class my_class{};
|
||||
}
|
||||
|
Reference in New Issue
Block a user