|
Boost : |
Subject: Re: [boost] clang-win, again
From: Edward Diener (eldiener_at_[hidden])
Date: 2018-08-11 23:44:38
On 8/11/2018 6:22 PM, Peter Dimov via Boost wrote:
> Has anyone succeeded in getting clang-cl.exe working under b2? I've
> installed llvm-6.0.1, added it to PATH, put
>
> Â Â using clang-win : : : <compatibility>vc14 ;
I use this:
using clang : 6.0cl : C:/Utilities/LLVM/601/x32/bin/clang++
:
<cxxflags>-fmacro-backtrace-limit=0
<cxxflags>-Wno-invalid-token-paste
<compileflags>-fmsc-version=1900
<compileflags>--target=i686-pc-windows-msvc
<linkflags>--target=i686-pc-windows-msvc
<linkflags>-fuse-ld=lld
;
My batch file which uses this puts C:\Utilities\LLVM\601\x32\bin
first in the path and also invokes the correct 'vcvarsall.bat x86'
command. The command line uses 'toolset=clang-6.0cl'. I have not tried
it yet with VS2017.
>
> in my user-config, and what I get is:
>
>
>
> C:\boost-git\develop\libs\smart_ptr\test>b2 toolset=clang-win
> sp_interlocked_test
>
> warning: mismatched versions of Boost.Build engine and core
> warning: Boost.Build engine (b2) is 2015.07.00
> warning: Boost.Build core (at C:/boost-git/develop/tools/build/src) is
> 2018.02-git
>
> C:/boost-git/develop/tools/build/src/tools\msvc.jam:1087: in
> set-setup-command
> *** argument error
> * rule virtual-target.from-file ( file : file-loc : project )
> * called with: (Â : /C:/boost-git/develop/libs/smart_ptr/test :
> object(project-t
> arget)@129 )
> * missing argument file
> C:/boost-git/develop/tools/build/src/build\virtual-target.jam:970:see
> definition
> of rule 'virtual-target.from-file' being called
> C:/boost-git/develop/tools/build/src/tools\msvc.jam:652: in
> clang-win.compile.c+
> +
> C:/boost-git/develop/tools/build/src/kernel\modules.jam:107: in
> modules.call-in
> C:/boost-git/develop/tools/build/src/util\indirect.jam:105: in
> indirect.call
> C:/boost-git/develop/tools/build/src/build\virtual-target.jam:902: in
> execute
> C:/boost-git/develop/tools/build/src/build\virtual-target.jam:821: in
> class_at_acti
> on.actualize
> C:/boost-git/develop/tools/build/src/build\virtual-target.jam:332: in
> actualize-
> action
> C:/boost-git/develop/tools/build/src/build\virtual-target.jam:518: in
> actualize-
> no-scanner
> C:/boost-git/develop/tools/build/src/build\virtual-target.jam:142: in
> class_at_virt
> ual-target.actualize
> C:/boost-git/develop/tools/build/src/build\configure.jam:258: in
> try-find-build
> C:/boost-git/develop/tools/build/src/build\configure.jam:396: in
> find-builds-raw
>
> C:/boost-git/develop/tools/build/src/build\configure.jam:455: in
> configure.find-
> builds
> C:/boost-git/develop\boostcpp.jam:734: in boostcpp.deduce-address-model
> C:/boost-git/develop/tools/build/src/kernel\modules.jam:107: in
> modules.call-in
> C:/boost-git/develop/tools/build/src/util\indirect.jam:105: in
> indirect.call
> C:/boost-git/develop/tools/build/src/build\property.jam:144: in
> property.evaluat
> e-conditionals-in-context
> C:/boost-git/develop/tools/build/src/build\targets.jam:1087: in
> evaluate-require
> ments
> C:/boost-git/develop/tools/build/src/build\targets.jam:1121: in
> common-propertie
> s2
> C:/boost-git/develop/tools/build/src/build\targets.jam:1017: in
> targets.common-p
> roperties
> C:/boost-git/develop/tools/build/src/build\targets.jam:1313: in
> class_at_basic-targ
> et.generate
> C:/boost-git/develop/tools/build/src/build\targets.jam:812: in
> generate-really
> C:/boost-git/develop/tools/build/src/build\targets.jam:784: in
> class_at_main-target
> .generate
> C:/boost-git/develop/tools/build/src\build-system.jam:797: in load
> C:\boost-git\develop\tools\build\src/kernel\modules.jam:295: in import
> C:\boost-git\develop\tools\build\src/kernel/bootstrap.jam:139: in
> boost-build
> C:\boost-git\develop\boost-build.jam:17: in module scope
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk