Jamfile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright 2011 Daniel James.
  2. # Distributed under the Boost Software License, Version 1.0. (See accompanying
  3. # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. import testing ;
  5. project detail/test/container_fwd
  6. : requirements
  7. <warnings>all
  8. <toolset>intel:<warnings>on
  9. <toolset>gcc:<cxxflags>"-pedantic -Wstrict-aliasing -fstrict-aliasing -Wextra -Wsign-promo -Wunused-parameter -Wconversion"
  10. <toolset>darwin:<cxxflags>"-pedantic -Wstrict-aliasing -fstrict-aliasing -Wextra -Wsign-promo -Wunused-parameter -Wconversion"
  11. <toolset>clang:<cxxflags>"-pedantic -Wextra -Wmismatched-tags"
  12. <warnings-as-errors>on
  13. ;
  14. run container_no_fwd_test.cpp ;
  15. run container_fwd_test.cpp : : : : container_fwd ;
  16. run container_fwd_test.cpp : :
  17. : <define>_STLP_DEBUG <define>_GLIBCXX_DEBUG
  18. : container_fwd_debug ;
  19. # The 'correctly_disable' tests fail if forward declaring standard types
  20. # could work, but is currently not being done. Unfortunately, this if often
  21. # the case - but we can't detect it, so the tests fail and there's not much
  22. # we can do. There are also problems because some compilers don't support
  23. # the debug version of their libraries. So I felt it was best to stop these
  24. # tests from running in a normal test run..
  25. compile-fail correctly_disable_fail.cpp
  26. : <warnings-as-errors>off
  27. : correctly_disable ;
  28. compile-fail correctly_disable_fail.cpp
  29. : <warnings-as-errors>off <define>_STLP_DEBUG <define>_GLIBCXX_DEBUG
  30. : correctly_disable_debug ;
  31. explicit correctly_disable ;
  32. explicit correctly_disable_debug ;