Denis Petrov via llvm-dev
2020-May-21 13:36 UTC
[llvm-dev] [llvm][llvm-tblgen][clang-tblgen] MSVC Debug ill-build of clang-tblgen.exe and llvm-tblgen.exe
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>
Denis Petrov via llvm-dev
2020-May-22 12:39 UTC
[llvm-dev] [llvm-tblgen][clang-tblgen] MSVC Debug ill-build of clang-tblgen.exe and llvm-tblgen.exe
Proposed a fix https://reviews.llvm.org/D80433? ________________________________ Denys Petrov Senior С++ Developer | Kharkiv, Ukraine ________________________________ От: Denis Petrov Отправлено: 21 мая 2020 г. 16:36 Кому: llvm-dev at lists.llvm.org Тема: [llvm][llvm-tblgen][clang-tblgen] MSVC Debug ill-build of clang-tblgen.exe and llvm-tblgen.exe 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/20200522/51b8a9b8/attachment.html>