Finally resolved the issue. The problem was that RC.exe was not in my
%PATH%.
Thanks all for assistance!
--- CMake output:
-- The C compiler identification is Clang 3.7.1
-- The CXX compiler identification is Clang 3.7.1
-- Check for working C comp
Hi Anton,
My setup is:
* Visual Studio 2013 x86 and amd64
* Clang 3.7.1 64 bit installed in c:\Program Files\LLVM\
* CMake 3.5.0
* Ninja 1.5.3
* C++ Hello World CMake project
Visual Studio 2013 amd64
1. Opened a command prompt and run "C:\Program Files (x86)\Micr
On Thu, Mar 10, 2016 at 12:48 AM, Anton Yartsev
wrote:
> Oops, sorry, confused with different variants.
>
> I've tried
> $SET CC=D:\LLVM-3.7.1\bin\clang-cl.exe
> $SET CXX=D:\LLVM-3.7.1\bin\clang-cl.exe
> $cmake -G "Ninja" ..
>
> Compilation succeeded, linkage has ended up with "clang-cl.exe: erro
Oops, sorry, confused with different variants.
I've tried
$SET CC=D:\LLVM-3.7.1\bin\clang-cl.exe
$SET CXX=D:\LLVM-3.7.1\bin\clang-cl.exe
$cmake -G "Ninja" ..
Compilation succeeded, linkage has ended up with "clang-cl.exe: error:
unable to execute command: program not executable".
The same resu
> -- check which cl.exe is used:
> $which cl
> D:\CL\cl.EXE
>
> -- trying to build:
> $cmake -G "Ninja" -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang ..
If your goal is use your renamed clang-cl (cl.exe) then why are you
telling CMake to use to use clang.exe ?
You can clearly see if
Hi Benjamin,
thanks for the idea, tried to use simple paths, unfortunately it doesn't
solved the problem.
the path to your compiler seems to have spaces in it. I had problems
on Windows with spaces or other special characters in the compiler
path, too. Please try to locate the compiler in anot
Hi Cristian,
That's what I did:
1) Created empty directory "D:\CL", moved clang-cl.exe there and renamed
it to cl.exe.
2) Put the paths to cl.exe and Clang first in the global PATH
environment variable. Set path to Clang Includes first in INCLUDE
3) Launched Cmake from an empty project dir.
S
Hi Anton,
When I say clang-cl I mean how the official llvm package does it - a 50mb
executable named cl.exe and not clang-cl.exe.
Ninja believes it compiles with visual c++, but instead it compiles with
clang. That's why you need to put the path to clang INCLUDE and PATH first.
Simply rename cla
Hi Anton,
Zitat von Anton Yartsev :
Here are the results from 'CXX=clang-cl.exe CC=clang-cl.exe cmake -G
"Ninja" ..' :
$ set CXX=clang-cl
$ set CC=clang-cl
$ cmake -G "Ninja" ..
-- No build type selected, default to Debug
-- The C compiler identification is Clang 3.7.1
-- The CXX compiler
Hi,
On 4 March 2016 at 11:16, Anton Yartsev wrote:
Hi Cristian,
thanks for the replay. I have clang-cl first in PATH, the problem persists.
Just to check. Did you run cmake in a new (i.e. empty) build directory
when you fixed that? IIRC once a compiler has been picked
during configure you can
Hi,
On 4 March 2016 at 11:16, Anton Yartsev wrote:
> Hi Cristian,
>
> thanks for the replay. I have clang-cl first in PATH, the problem persists.
Just to check. Did you run cmake in a new (i.e. empty) build directory
when you fixed that? IIRC once a compiler has been picked
during configure you
Hi Cristian,
thanks for the replay. I have clang-cl first in PATH, the problem persists.
$ SET PATH
Path=D:\-Work-\llvm-3.7.1.src\-VS_build VS 2013-\Release\bin;...
$cd D:\-Work-\llvm-3.7.1.src\-VS_build VS 2013-\Release\bin
$dir
Directory of D:\-Work-\llvm-3.7.1.src\-VS_build VS 2013-\Release
Hi Anton,
clang.exe doesn't know of any windows specific things. Clang-cl instead
does.
Just make sure to have clang-cl before msvc-cl in path and ninja will just
work.
Cheers,
Cristian
On Mar 4, 2016 01:31, "Anton Yartsev" wrote:
> Hi all,
>
> I'm trying to use Clang, compiled with VS 2013 (
Hi all,
I'm trying to use Clang, compiled with VS 2013 (configuration:Release,
platform:x64) as a C/C++ compiler for a simple HelloWorld CMake project.
Generation ends up with errors like "clang.exe: error: no such file or
directory: '/DWIN32'" at compiler check stage. If I understand correctl
14 matches
Mail list logo