From 0f0902d11cc3624cb470dddf3fee99d5789a4564 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Tue, 20 May 2014 21:26:33 +0400 Subject: [PATCH] Explicitly define BOOSTNO_RTTI: do not rely on ability of Boost.Config to detect RTTI --- test/Jamfile.v2 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 819bc65..75f710c 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -17,10 +17,10 @@ nortti = gcc:"-fno-rtti -DBOOST_NO_RTTI" clang:"shared off ; -obj test_lib_anonymous_nortti-obj : test_lib_anonymous.cpp : shared off ; -lib test_lib_nortti : test_lib_nortti-obj : shared off ; -lib test_lib_anonymous_nortti : test_lib_anonymous_nortti-obj : shared off ; +obj test_lib_nortti-obj : test_lib.cpp : shared off -DBOOST_NO_RTTI ; +obj test_lib_anonymous_nortti-obj : test_lib_anonymous.cpp : shared off -DBOOST_NO_RTTI ; +lib test_lib_nortti : test_lib_nortti-obj : shared off -DBOOST_NO_RTTI ; +lib test_lib_anonymous_nortti : test_lib_anonymous_nortti-obj : shared off -DBOOST_NO_RTTI ; obj test_lib_rtti-obj : test_lib.cpp : shared ; obj test_lib_anonymous_rtti-obj : test_lib_anonymous.cpp : shared ; @@ -37,12 +37,12 @@ lib test_lib_rtti_compat : test_lib_rtti_compat-obj : shared $(nortti) $(c test-suite type_index : [ run type_index_test.cpp ] - [ run type_index_test.cpp : : : off : type_index_test_no_rtti ] + [ run type_index_test.cpp : : : off -DBOOST_NO_RTTI : type_index_test_no_rtti ] [ run ctti_print_name.cpp : : : always_show_run_output ] [ run testing_crossmodule.cpp test_lib_rtti ] - [ run testing_crossmodule.cpp test_lib_nortti : : : off : testing_crossmodule_no_rtti ] + [ run testing_crossmodule.cpp test_lib_nortti : : : off -DBOOST_NO_RTTI : testing_crossmodule_no_rtti ] [ run testing_crossmodule_anonymous.cpp test_lib_anonymous_rtti ] - [ run testing_crossmodule_anonymous.cpp test_lib_anonymous_nortti : : : off : testing_crossmodule_anonymous_no_rtti ] + [ run testing_crossmodule_anonymous.cpp test_lib_anonymous_nortti : : : off -DBOOST_NO_RTTI : testing_crossmodule_anonymous_no_rtti ] [ compile-fail type_index_test_ctti_copy_fail.cpp ] [ compile-fail type_index_test_ctti_construct_fail.cpp ] [ compile type_index_test_ctti_alignment.cpp ] @@ -65,7 +65,7 @@ for local p in [ glob ../examples/*.cpp ] local target_name = $(p[1]:B)_no_rtti ; if $(target_name) != "table_of_names_no_rtti" { - type_index += [ run $(p) : : : off : $(target_name) ] ; + type_index += [ run $(p) : : : off -DBOOST_NO_RTTI : $(target_name) ] ; } }