[LLVMdev] Clang can't be built out of tree on windows

Nikola Smiljanic popizdeh at gmail.com
Sat Nov 2 03:59:04 PDT 2013


This seems to be a CMake issue that I just can't figure out. The only
reason I'm sending an email to llvmdev is in hope of getting the attention
of more CMake ninjas (I'm not subscribed to this list so please reply to
all).

By "out of source" I mean llvm at c:/llvm and clang at c:/clang and both
are configured separately so that I get two solutions.

Basically ClangDriverOptions and ClangCC1AsOptions will fail
saying: 'C:\llvm-build\bin\\llvm-tblgen.exe' is not recognized as an
internal or external command

This is correct, because the actual path to tblgen has Debug in it
(bin\Debug\llvm-tblgen), it should go right between those two backlashes
(bin\\). Only these two project call llvm-tblgen, other clang project seem
to be using clang-tblgen which works fine. I've added some tracing to
llvm/cmake/modules/tablegen.cmake where tablegen CMake macro is defined but
haven't had much success in figuring out where the wrong path is coming
from.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131102/6d62dfd1/attachment.html>


More information about the llvm-dev mailing list