# Copyright René Ferdinand Rivera Morell 2023-2024 # Copyright (c) 2021 Nikita Kniazev # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) require-b2 5.2 ; import feature ; if ! [ feature.valid known-warnings ] { feature.feature known-warnings : hide show : incidental propagated ; } local 9.0-14.0 = 9.0 10.0 11.0 12.0 14.0 ; constant boost_dependencies : /boost/array//boost_array /boost/assert//boost_assert /boost/config//boost_config /boost/core//boost_core /boost/endian//boost_endian /boost/function//boost_function /boost/function_types//boost_function_types /boost/fusion//boost_fusion /boost/integer//boost_integer /boost/io//boost_io /boost/iterator//boost_iterator /boost/move//boost_move /boost/mpl//boost_mpl /boost/optional//boost_optional /boost/phoenix//boost_phoenix /boost/pool//boost_pool /boost/preprocessor//boost_preprocessor /boost/proto//boost_proto /boost/range//boost_range /boost/regex//boost_regex /boost/smart_ptr//boost_smart_ptr /boost/static_assert//boost_static_assert /boost/thread//boost_thread /boost/throw_exception//boost_throw_exception /boost/type_traits//boost_type_traits /boost/typeof//boost_typeof /boost/unordered//boost_unordered /boost/utility//boost_utility /boost/variant//boost_variant ; project /boost/spirit : common-requirements include : requirements # Warnings that we have not managed to fix yet hide,msvc:-wd4244 # conversion from 'T' to 'U', possible loss of data hide,msvc:-wd4365 # conversion from 'T' to 'U', signed/unsigned mismatch hide,msvc:-wd4459 # declaration of 'varname' hides global declaration # Enable additional useful warnings extra,gcc:-Wshadow-local extra,clang-linux:-Wshadow-field-in-constructor extra,clang-linux:-Wshadow-uncaptured-local extra,clang-linux:-Wundefined-reinterpret-cast extra,msvc:-w44555 # result of expression not used # Broken or very high false-positive rate hide,gcc:-Wno-maybe-uninitialized # Too many pesky false-positives hide,msvc-$(9.0-14.0):-wd4100 # unreferenced formal parameter hide,msvc-$(9.0-14.0):-wd4512 # assignment operator could not be generated hide,msvc-$(9.0-14.0):-wd4714 # function 'x' marked as __forceinline not inlined ; explicit [ alias boost_spirit : : : : $(boost_dependencies) ] [ alias all : boost_spirit example test ] ; call-if : boost-library spirit ;