Skip to content

Commit

Permalink
Fix for issue #764 (#765)
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed Feb 23, 2022
1 parent 20ae7d1 commit 1153427
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ obj has_gmp : has_gmp.cpp :
obj is_ci_sanitizer_run : is_ci_sanitizer_run.cpp ;
obj is_ci_standalone_run : is_ci_standalone_run.cpp ;
obj is_cygwin_run : is_cygwin_run.cpp ;
obj is_MSVC1930_or_newer_run : is_MSVC1930_or_newer.cpp ;

explicit has_long_double_support ;
explicit has_mpfr_class ;
Expand All @@ -52,3 +53,4 @@ explicit has_fftw3 ;
explicit is_ci_sanitizer_run ;
explicit is_ci_standalone_run ;
explicit is_cygwin_run ;
explicit is_MSVC1930_or_newer_run ;
16 changes: 16 additions & 0 deletions config/is_MSVC1930_or_newer.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright Matt Borland 2022.
// Use, modification and distribution are subject to 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)
//
// The following change was released in VS 2022 17.1 Preview 1 and no longer allows compilation of *.c files
// https://github.com/microsoft/STL/pull/2148

#if !defined(_MSC_VER) || (_MSC_VER < 1930)
# error "MSVC1930 or newer run is NOT in effect".
#endif

int main()
{
return 0;
}
2 changes: 2 additions & 0 deletions test/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -933,6 +933,7 @@ test-suite misc :
../build//boost_math_c99f
../../test/build//boost_unit_test_framework
: : : #requirements
[ check-target-builds ../config//is_MSVC1930_or_newer_run "MSVC1930 or newer run" : <build>no ]
:
test_tr1_c
]
Expand All @@ -944,6 +945,7 @@ test-suite misc :
: : :
<define>TEST_LD=1
[ check-target-builds ../config//has_long_double_support "long double support" : : <build>no ]
[ check-target-builds ../config//is_MSVC1930_or_newer_run "MSVC1930 or newer run" : <build>no ]
:
test_tr1_c_long_double
]
Expand Down

0 comments on commit 1153427

Please sign in to comment.