Re: [CMake] Using Clang + Ninja on Windows?

2016-04-22 Thread Edward Diener
On 4/22/2016 4:51 AM, Mueller-Roemer, Johannes Sebastian wrote: It is true that there is no official bundled installer with both, but the official installer works just fine with mingw as long as you pass in the correct target to clang(++) For example clang++ --target=x86_64-w64-mingw32

Re: [CMake] Using Clang + Ninja on Windows?

2016-04-22 Thread Mueller-Roemer, Johannes Sebastian
(the default location, it’ll work with a junction point though). From: Cristian Adam [mailto:cristian.a...@gmail.com] Sent: Friday, April 22, 2016 09:15 To: Mueller-Roemer, Johannes Sebastian <johannes.sebastian.mueller-roe...@igd.fraunhofer.de> Cc: cmake@cmake.org Subject: Re: [CMake]

Re: [CMake] Using Clang + Ninja on Windows?

2016-04-22 Thread Cristian Adam
On Fri, Apr 22, 2016 at 8:59 AM, Mueller-Roemer, Johannes Sebastian < johannes.sebastian.mueller-roe...@igd.fraunhofer.de> wrote: > You are mistaken, Clang absolutely also works with MinGW. Or it did at > least up to 3.7 (didn’t get around to trying 3.8 yet) > > > Clang works fine with libstdc++

Re: [CMake] Using Clang + Ninja on Windows?

2016-04-22 Thread Mueller-Roemer, Johannes Sebastian
ke.org Subject: Re: [CMake] Using Clang + Ninja on Windows? On Wed, Apr 20, 2016 at 4:01 PM, Johan Holmberg <johan...@gmail.com<mailto:johan...@gmail.com>> wrote: Hi! How should I setup CMake to build a C/C++ application on Windows using clang/clang++ as compilers and Ninja as b

Re: [CMake] Using Clang + Ninja on Windows?

2016-04-21 Thread Gonzalo
El 21/04/16 a las 18:30, Cristian Adam escribió:} > Note that you have to match Visual C++ and Clang's build, 32 or 64 bit. You can't mix them, > or you'll have weird errors . I wonder. Are the C and C++ ABIs of both compilers

Re: [CMake] Using Clang + Ninja on Windows?

2016-04-21 Thread Cristian Adam
On Wed, Apr 20, 2016 at 4:01 PM, Johan Holmberg wrote: > Hi! > > How should I setup CMake to build a C/C++ application on Windows using > clang/clang++ as compilers and Ninja as build tool? > > I tried specifying "-GNinja" to cmake, and setting CC/CXX to > clang/clang++. But

Re: [CMake] Using Clang + Ninja on Windows?

2016-04-21 Thread Brad King
On 04/21/2016 10:15 AM, Johan Holmberg wrote: > I chose the binaries behaving like "gcc" > > I realize that Cristian Adams recommended using the "cl.exe" wrapper in > his response, but I wanted at least to try using the "gcc-like" binaries > first, hoping that they should work with CMake. I

Re: [CMake] Using Clang + Ninja on Windows?

2016-04-21 Thread Johan Holmberg
On Wed, Apr 20, 2016 at 5:54 PM, Brad King wrote: > On 04/20/2016 10:01 AM, Johan Holmberg wrote: > > I tried specifying "-GNinja" to cmake, and setting CC/CXX to > > clang/clang++. > > Good. > > > But this didn't work. I get errors like: > > > > clang.exe: error: no

Re: [CMake] Using Clang + Ninja on Windows?

2016-04-20 Thread Brad King
On 04/20/2016 10:01 AM, Johan Holmberg wrote: > I tried specifying "-GNinja" to cmake, and setting CC/CXX to > clang/clang++. Good. > But this didn't work. I get errors like: > > clang.exe: error: no such file or directory: '/nologo' > > indicating that CMake thinks it should pass Visual C++