[cfe-dev] Building clang on Windows with CMake/Ninja

Edward Diener eldlistmailingz at tropicsoft.com
Thu Nov 14 15:47:30 PST 2013


On 11/14/2013 3:48 PM, Óscar Fuentes wrote:
> Edward Diener <eldlistmailingz at tropicsoft.com>
> writes:
>
>> Thanks for the info. How does Ninja know to be using MingW as opposed
>> to other development environments I have ?
>
> CMake has a list of toolsets to search for. IIRC for the Ninja generator
> MinGW takes precedence, just make sure that its `bin' directory is
> listed in PATH, but if after doing that CMake picks VS first, delete and
> recreate the build directory and set this environment variables before
> invoking CMake:
>
> set CC=gcc
> set CXX=g++
>

Running the cmake command you specified worked but with this warning:

"-- Warning: LLVM will be built thread-unsafe because atomic builtins 
are missing"

Does this affect the build of clang in any way ?




More information about the cfe-dev mailing list