AMDG On 03/26/2016 07:08 AM, John Maddock wrote:
On 25/03/2016 20:02, Steven Watanabe wrote:
On 03/25/2016 01:35 PM, John Maddock wrote:
What's the correct way to configure clang on windows with current Boost.Build?
clang-win.jam isn't up-to-date for vc14. Try the attached patch.
Then the clang command disappears altogether and bjam tries to invoke:
/DEBUG /subsystem:console /out:"..\..\..\bin.v2\libs\config\test\config_info.test\clang-vc14-win-3.9.0\debug\config_info.exe" @"..\..\..\bin.v2\libs\config\test\config_info.test\clang-vc14-win-3.9.0\debug\config_info.exe.rsp"
That should be calling link.exe, not clang. If you're getting here, it means that compiling succeeded. I don't have clang installed at the moment, but when I run with -n, the command line looks right. file bin.v2\libs\config\test\config_info.test\clang-vc14-win-3.7\debug\config_info.obj.rsp "libs\config\test\config_info.cpp" -Fo"bin.v2\libs\config\test\config_info.test\clang-vc14-win-3.7\debug\config_info.obj" -TP /Od /Ob0 /W3 /GR /MDd /Zc:forScope /Zc:wchar_t -fmsc-version=1900 /wd4675 /EHs -c -DBOOST_ALL_NO_LIB=1 "-I." compile-c-c++ bin.v2\libs\config\test\config_info.test\clang-vc14-win-3.7\debug\config_info.obj call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86 > nul "clang.exe" @"bin.v2\libs\config\test\config_info.test\clang-vc14-win-3.7\debug\config_info.obj.rsp" clang-win.link bin.v2\libs\config\test\config_info.test\clang-vc14-win-3.7\debug\config_info.exe call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86 > nul link /nologo /DEBUG /MACHINE:X86 /MANIFEST /subsystem:console /out:"bin.v2\libs\config\test\config_info.test\clang-vc14-win-3.7\debug\config_info.exe" @"bin.v2\libs\config\test\config_info.test\clang-vc14-win-3.7\debug\config_info.exe.rsp" if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%
Plus the response file contains:
"config_info.cpp" -Fo"..\..\..\bin.v2\libs\config\test\config_info.test\clang-vc14-win-3.9.0\debug\config_info.obj" -TP /Od /Ob0 /W3 /GR /MDd /EHs -c -DBOOST_ALL_NO_LIB=1 "-I..\..\.."
And I don't think those command line options are supported by clang?
This seems like msvc.configure-version-specific is getting skipped. What does --debug-configuration say? In Christ, Steven Watanabe