diff --git a/libs/type_index/test/Jamfile.v2 b/libs/type_index/test/Jamfile.v2 index 9a886ab..c073638 100644 --- a/libs/type_index/test/Jamfile.v2 +++ b/libs/type_index/test/Jamfile.v2 @@ -19,10 +19,10 @@ nortti = gcc:-fno-rtti clang:-fno-rtti shared $(nortti) ; +obj test_lib_nortti-obj : test_lib.cpp : shared off ; obj test_lib_rtti-obj : test_lib.cpp : shared ; lib test_lib_rtti : test_lib_rtti-obj : shared ; -lib test_lib_nortti : test_lib_nortti-obj : shared $(nortti) ; +lib test_lib_nortti : test_lib_nortti-obj : shared off ; # Making libraries that can work between rtti-on/rtti-off modules obj test_lib_nortti_compat-obj : test_lib.cpp : shared $(nortti) $(compat) ; @@ -42,7 +42,8 @@ test-suite type_index # Mixing RTTI on and off [ link-fail testing_crossmodule.cpp $(tlib) test_lib_rtti : $(nortti) : link_fail_nortti_rtti ] - [ link-fail testing_crossmodule.cpp $(tlib) test_lib_nortti : : link_fail_rtti_nortti ] + # MSVC sometimes overrides the /GR-, that's why the following tests is disabled + #[ link-fail testing_crossmodule.cpp $(tlib) test_lib_nortti : : link_fail_rtti_nortti ] [ run testing_crossmodule.cpp $(tlib) test_lib_rtti_compat : : : $(nortti) $(compat) : testing_crossmodule_nortti_rtti_compat ] [ run testing_crossmodule.cpp $(tlib) test_lib_nortti_compat : : : $(compat) : testing_crossmodule_rtti_nortti_compat ]