|
Boost Users : |
Subject: [Boost-users] [clang-win][bjam][context] '-c' is not recognized as an internal or external command
From: Mikhail Strelnikov (mikhail.strelnikov_at_[hidden])
Date: 2017-02-05 10:33:44
Hello Boost,
I'd like to build Boost.Context with clang on Windows with BB.
There are my files:
site-config.jam:
using clang-win : : "C:/Program Files/LLVM/bin/clang-cl.exe" :
<compatibility>vc14 <cxxflags>-Xclang <cxxflags>-std=c++1z
<cxxflags>-DBOOST_USE_WINDOWS_H <cxxflags>-DNOMINMAX
<cxxflags>-DWIN32_LEAN_AND_MEAN <cxxflags>-D_HAS_AUTO_PTR_ETC=1 ;
Jamroot:
local BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ;
project main
: source-location .
: requirements
<include>$(BOOST_ROOT)
<define>BOOST_ALL_NO_LIB=1
;
use-project /boost : $(BOOST_ROOT) ;
exe main : main.cpp /boost//coroutine /boost//date_time ;
main.cpp
int main() {}
I run the command:
b2.exe -d+2 toolset=clang-win address-model=64 link=static
runtime-link=static release -sBOOST_ROOT=D:\path\to\boost
This gives me following error:
clang-win.compile.asm
D:\path\to\boost\bin.v2\libs\context\build\clang-vc14-win\release\link-static\runtime-link-static\threading-multi\asm\make_x86_64_ms_pe_gas.obj
-c -Zp4 -Cp -Cx -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTEXT_SOURCE
-DBOOST_DISABLE_ASSERTS -DNDEBUG -DBOOST_ALL_NO_LIB=1
-DBOOST_CONTEXT_SOURCE -DBOOST_DISABLE_ASSERTS -DNDEBUG /W3 -Fo
"D:\path\to\boost\bin.v2\libs\context\build\clang-vc14-win\release\link-static\runtime-link-static\threading-multi\asm\make_x86_64_ms_pe_gas.obj"
"D:\path\to\boost\libs\context\src\asm\make_x86_64_ms_pe_gas.asm"
'-c' is not recognized as an internal or external command,
Am I doing something wrong?
Thanks.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net