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

Reid Kleckner rnk at google.com
Thu Jan 30 10:40:49 PST 2014


I think it's because clang doesn't know about -mthreads.


On Wed, Jan 29, 2014 at 11:22 PM, Edward Diener <
eldlistmailingz at tropicsoft.com> wrote:

> When I build clang on Windows for MingW with CMake/Ninja I get from Cmake:
>
> -- Warning: LLVM will be built thread-unsafe because atomic builtins are
> missing
> -- Could NOT find LibXml2 (missing:  LIBXML2_INCLUDE_DIR)
>
> The CMake setup finishes successfully. When I invoke clang++ with the
> options:
>
> -c -x c++ -O0 -g -fno-inline -Wall -g -mthreads
>
> I get:
>
> clang++.exe: error: unknown argument: '-mthreads'
>
> Is this because of either of the problems beforehand when CMake wqas used
> ? If so how do I correct the CMake problems ?
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140130/e77bc447/attachment.html>


More information about the cfe-dev mailing list