Compare commits

...

10 Commits

Author SHA1 Message Date
Peter Dimov
6f162555a3 Third try for clang-win 2018-07-09 19:34:55 +03:00
Peter Dimov
6dcde20c14 Another try for clang-win 2018-07-09 19:18:42 +03:00
Peter Dimov
0333af2a72 Try clang-win with a user-config 2018-07-09 18:48:50 +03:00
Peter Dimov
971b46d038 Try clang-cl.exe again, with msvc without a custom version 2018-07-09 18:27:48 +03:00
Peter Dimov
e74205d2a1 Quote USER_CONFIG 2018-07-09 18:03:09 +03:00
Peter Dimov
d77d6460ab Try using msvc.jam with clang-cl.exe 2018-07-09 17:58:00 +03:00
Peter Dimov
66631f95d4 Try clang-win 2018-07-09 13:05:58 +03:00
Peter Dimov
7da0eed2fe Disable constexpr on Clang/Win 2018-07-09 12:48:12 +03:00
Peter Dimov
6abf6c7e89 Disable 03/11 tests under Clang/Win 2018-07-09 12:30:18 +03:00
Peter Dimov
6b638df0c1 Add Clang to Appveyor 2018-07-09 10:51:32 +03:00
3 changed files with 13 additions and 1 deletions

View File

@@ -14,6 +14,10 @@ branches:
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
TOOLSET: clang-win
CLANG_WIN: 1
USER_CONFIG: "using clang-win : : clang-cl.exe : <compatibility>vc14 ;"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
TOOLSET: msvc-9.0
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
@@ -77,4 +81,5 @@ build: off
test_script:
- PATH=%ADDPATH%%PATH%
- if not "%CXXSTD%" == "" set CXXSTD=cxxstd=%CXXSTD%
- if not "%USER_CONFIG%" == "" echo %USER_CONFIG% > %HOMEDRIVE%%HOMEPATH%\user-config.jam
- b2 -j3 libs/system/test toolset=%TOOLSET% variant=debug,release %CXXSTD%

View File

@@ -48,6 +48,12 @@
# undef BOOST_SYSTEM_HAS_CONSTEXPR
#endif
#if defined(__clang__) && defined(_MSC_VER) && defined(_CPPLIB_VER)
// Clang on Windows with MSVC headers, the constructor of std::error_category
// is not constexpr at least up to VS2017 15.7.x (_MSVC_STL_UPDATE 201803)
# undef BOOST_SYSTEM_HAS_CONSTEXPR
#endif
#if defined(BOOST_SYSTEM_HAS_CONSTEXPR)
# define BOOST_SYSTEM_CONSTEXPR constexpr
#else

View File

@@ -76,11 +76,12 @@ project
return $(result) ;
}
if [ os.environ UBSAN ]
if [ os.environ UBSAN ] || [ os.environ CLANG_WIN ]
{
rule system-run ( sources + )
{
# The 03/11 tests are ODR violations, no point running them under -fsanitize=undefined
# Clang on Windows uses MSVC headers, which don't parse under 03/11
return [ system-run- $(sources) ] ;
}
}