Jamfile 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. # Copyright Mateusz Loskot 2018 <mateusz@loskot.net>
  2. # Copyright Klemens David Morgenstern, Hans P. Dembinski 2016-2017
  3. #
  4. # Use, modification and distribution is subject to the Boost Software License,
  5. # Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  6. # http://www.boost.org/LICENSE_1_0.txt)
  7. import common ;
  8. project
  9. : requirements
  10. <implicit-dependency>/boost//headers
  11. <include>$(BOOST_ROOT)
  12. <toolset>clang:<cxxflags>"-pedantic -Wextra -Wsign-compare -Wstrict-aliasing -fstrict-aliasing"
  13. <toolset>gcc:<cxxflags>"-pedantic -Wextra -Wsign-compare -Wstrict-aliasing -fstrict-aliasing"
  14. : default-build
  15. <warnings>all
  16. ;
  17. path-constant THIS_PATH : . ;
  18. # only works with clang because of -fsanitize-blacklist
  19. variant histogram_ubasan : debug :
  20. <cxxflags>"-fno-omit-frame-pointer -O0 -fno-inline -fsanitize=address,leak,undefined -fno-sanitize-recover=all -fsanitize-blacklist=$(THIS_PATH)/tools/blacklist.supp"
  21. <linkflags>"-fsanitize=address,leak,undefined"
  22. ;
  23. ## Special builds:
  24. #
  25. # Generate coverage data: `b2 cxxstd=latest coverage=on`
  26. # Build without exceptions and rtti: `b2 exception-handling=off rtti=off`
  27. build-project test ;
  28. build-project examples ;