When trying to test clang under Windows which is built with MingW, Boost Build runs with the options: -c -x c++ -O0 -g -fno-inline -Wall -g -mthreads However clang does not recognize -mthreads and flags it as an error. Is there anything I can do to remove this option from the clang++.exe command line when invoking Boost Build ?
Hello Edward, ED> When trying to test clang under Windows which is built with MingW, ED> Boost Build runs with the options: ED> ED> -c -x c++ -O0 -g -fno-inline -Wall -g -mthreads ED> ED> However clang does not recognize -mthreads and flags it as an error. Options used for a particular toolset are described in *.jam files located in tools/build/v2/tools. From your information it seems like you are using options from gcc.jam, i.e. gcc toolset, not clang. -- Vyacheslav Andrejev
On 2/1/2014 10:51 PM, Vyacheslav Andrejev wrote:
Hello Edward,
ED> When trying to test clang under Windows which is built with MingW, ED> Boost Build runs with the options: ED> ED> -c -x c++ -O0 -g -fno-inline -Wall -g -mthreads ED> ED> However clang does not recognize -mthreads and flags it as an error.
Options used for a particular toolset are described in *.jam files located in tools/build/v2/tools. From your information it seems like you are using options from gcc.jam, i.e. gcc toolset, not clang.
I am invoking with b2 toolset=clang.
Hello Edward, ED> I am invoking with b2 toolset=clang. Thank you for the information. The option you are concerned about is located in gcc.jam nevertheless. -- Vyacheslav Andrejev
Hello Edward, ED> Much of clang-linux inherits from gcc. Great! Thank you for the information. Your question was: “is there anything I can do to remove this option”. I pointed you to the file where you can remove it from: gcc.jam. I'm sorry if my advice is not satisfactory. -- Vyacheslav Andrejev
participants (2)
-
Edward Diener
-
Vyacheslav Andrejev