[llvm-dev] [llvm][llvm-tblgen][clang-tblgen] MSVC Debug ill-build of clang-tblgen.exe and llvm-tblgen.exe

Denis Petrov via llvm-dev llvm-dev at lists.llvm.org
Thu May 21 06:36:14 PDT 2020


Hi, everyone.


Does anyone faced with the MSVC Debug build issues of clang-tblgen and llvm-tblgen?


I'm using Windows10 Pro. MSVC and GCC.

Here is my cmake setup: cmake -GNinja ../llvm -DLLVM_ENABLE_PROJECTS=clang -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_BUILD_TYPE=Debug


When building debug with GCC, cmd shows next:

D:\llvm-project\buildn2\bin>clang-tblgen.exe --version
LLVM (http://llvm.org/):
  LLVM version 11.0.0git
  DEBUG build with assertions.
  Default target: x86_64-w64-windows-gnu
  Host CPU: skylake
D:\llvm-project\buildn2\bin>clang-tblgen.exe --help
USAGE: clang-tblgen.exe [options] <input file>
OPTIONS:
Color Options:
  --color                                                      - Use colors in output (default=autodetect)
When building debug with MSVC, cmd shows next:
D:\llvm-project\buildvs\Debug\bin>clang-tblgen.exe --version
LLVM (http://llvm.org/):
  LLVM version 11.0.0git
  DEBUG build with assertions.
  Default target: x86_64-pc-windows-msvc
  Host CPU: skylake
D:\llvm-project\buildvs\Debug\bin>clang-tblgen.exe --help
clang-tblgen.exe: Unknown command line argument '--help'.  Try: 'clang-tblgen.exe --help'
clang-tblgen.exe: Did you mean '--color'?

All other commands of tblgen.exe do not work as well(beside of --version), when using Debug MSVC. It blocks the whole build process at all.


When using Release builds, both compilers work fine. What's the problem could be?


Help please.


Regards,

________________________________
Denys Petrov
Senior ะก++ Developer | Kharkiv, Ukraine

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200521/282ce36d/attachment.html>


More information about the llvm-dev mailing list