Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for issue #764 #765

Merged
merged 1 commit into from
Feb 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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