Subject: Re: [Boost-build] Building with clang for Windows/MingW
From: Vladimir Prus (ghost_at_[hidden])
Date: 2014-02-01 12:30:58
On 31.01.2014 03:18, Edward Diener wrote:
> When trying to test clang under Windows which is built with MingW, which essentially becomes clang-linux as a toolset, 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 ?
I though there's another clang-win somewhere in the works? Picking clang-linux seems suspicious to me, on Windows. If you want to make
clang-linux work, you probably can declare a function setup-threading in clang-linux.jam which basically forwards to gcc.setup-threading,
except for the case of target-os=windows, where it should do nothing.
Does this help?
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk