<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi, everyone.<br>
</p>
<p><br>
</p>
<p>Does anyone faced with the <strong>MSVC Debug</strong> build issues of clang-tblgen and llvm-tblgen?<br>
</p>
<p><br>
</p>
<p>I'm using Windows10 Pro. MSVC and GCC.<br>
</p>
<p>Here is my cmake setup: <span style="font-size:12pt; background-color:rgb(255,255,0)"><span style="background-color:rgb(255,255,0)">cmake -GNinja ../llvm -DLLVM_ENABLE_PROJECTS=clang -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_BUILD_TYPE=Debug</span></span></p>
<p><span style="font-size:12pt; background-color:rgb(255,255,0)"><span style="background-color:rgb(255,255,0)"><br>
</span></span></p>
<p>When building debug with GCC, cmd shows next:<br>
</p>
<div><span style="font-size:9pt; font-family:Consolas,monospace; background-color:rgb(255,255,0)"><span style="font-family:Consolas,monospace; background-color:rgb(255,255,0)"><span style="background-color:rgb(255,255,0)">D:\llvm-project\buildn2\bin>clang-tblgen.exe
 --version</span></span></span></div>
<div><span style="font-size:9pt; font-family:Consolas,monospace; background-color:rgb(255,255,0)"><span style="font-family:Consolas,monospace; background-color:rgb(255,255,0)"><span style="background-color:rgb(255,255,0)">LLVM (http://llvm.org/):</span></span></span></div>
<div><span style="font-size:9pt; font-family:Consolas,monospace; background-color:rgb(255,255,0)"><span style="font-family:Consolas,monospace; background-color:rgb(255,255,0)"><span style="background-color:rgb(255,255,0)">  LLVM version 11.0.0git</span></span></span></div>
<div><span style="font-size:9pt; font-family:Consolas,monospace; background-color:rgb(255,255,0)"><span style="font-family:Consolas,monospace; background-color:rgb(255,255,0)"><span style="background-color:rgb(255,255,0)">  DEBUG build with assertions.</span></span></span></div>
<div><span style="font-size:9pt; font-family:Consolas,monospace; background-color:rgb(255,255,0)"><span style="font-family:Consolas,monospace; background-color:rgb(255,255,0)"><span style="background-color:rgb(255,255,0)">  Default target: x86_64-w64-windows-gnu</span></span></span></div>
<div><span style="font-size:9pt; font-family:Consolas,monospace; background-color:rgb(255,255,0)"><span style="font-family:Consolas,monospace; background-color:rgb(255,255,0)"><span style="background-color:rgb(255,255,0)">  Host CPU: skylake</span></span></span></div>
<div><span style="font-size:9pt; font-family:Consolas,monospace; background-color:rgb(255,255,0)"><span style="font-family:Consolas,monospace; background-color:rgb(255,255,0)"><span style="background-color:rgb(255,255,0)">D:\llvm-project\buildn2\bin>clang-tblgen.exe
 --help</span></span><br style="font-family:Consolas,monospace; background-color:rgb(255,255,0)">
</span></div>
<div><span style="font-size:9pt; font-family:Consolas,monospace; background-color:rgb(255,255,0)"><span style="font-family:Consolas,monospace; background-color:rgb(255,255,0)"><span style="background-color:rgb(255,255,0)">USAGE: clang-tblgen.exe [options] <input
 file></span></span></span></div>
<div><span style="font-size:9pt; font-family:Consolas,monospace; background-color:rgb(255,255,0)"><span style="font-family:Consolas,monospace; background-color:rgb(255,255,0)"><span style="background-color:rgb(255,255,0)">OPTIONS:</span></span></span></div>
<div><span style="font-size:9pt; font-family:Consolas,monospace; background-color:rgb(255,255,0)"><span style="font-family:Consolas,monospace; background-color:rgb(255,255,0)"><span style="background-color:rgb(255,255,0)">Color Options:</span></span></span></div>
<div><span style="font-size:9pt; font-family:Consolas,monospace; background-color:rgb(255,255,0)"><span style="font-family:Consolas,monospace; background-color:rgb(255,255,0)"><span style="background-color:rgb(255,255,0)">  --color                         
                             - Use colors in output (default=autodetect)</span></span></span><br>
</div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; background-color:rgb(255,255,255)">When </span><span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; background-color:rgb(255,255,255)">buil</span><span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; background-color:rgb(255,255,255)">ding
 debug</span><span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; background-color:rgb(255,255,255)"> with MSVC</span><span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; background-color:rgb(255,255,255)">, cmd
 shows next</span>:<br>
</div>
<div><span style="background-color:rgb(255,255,0); font-size:8pt; font-family:Consolas,monospace"><span style="font-family:Consolas,monospace">D:\llvm-project\buildvs\Debug\bin>clang-tblgen.exe --version</span></span></div>
<div><span style="background-color:rgb(255,255,0); font-size:8pt; font-family:Consolas,monospace"><span style="font-family:Consolas,monospace">LLVM (http://llvm.org/):</span></span></div>
<div><span style="background-color:rgb(255,255,0); font-size:8pt; font-family:Consolas,monospace"><span style="font-family:Consolas,monospace">  LLVM version 11.0.0git</span></span></div>
<div><span style="background-color:rgb(255,255,0); font-size:8pt; font-family:Consolas,monospace"><span style="font-family:Consolas,monospace">  DEBUG build with assertions.</span></span></div>
<div><span style="background-color:rgb(255,255,0); font-size:8pt; font-family:Consolas,monospace"><span style="font-family:Consolas,monospace">  Default target: x86_64-pc-windows-msvc</span></span></div>
<div><span style="font-size:8pt; font-family:Consolas,monospace"><span style="background-color:rgb(255,255,0); font-family:Consolas,monospace"><span style="font-family:Consolas,monospace">  Host CPU: skylake</span></span><br style="background-color:rgb(255,255,0); font-family:Consolas,monospace">
</span></div>
<div><span style="background-color:rgb(255,255,0); font-size:8pt; font-family:Consolas,monospace"><span style="font-family:Consolas,monospace">D:\llvm-project\buildvs\Debug\bin>clang-tblgen.exe --help</span></span></div>
<div><span style="background-color:rgb(255,255,0); font-size:8pt; font-family:Consolas,monospace"><span style="font-family:Consolas,monospace">clang-tblgen.exe: Unknown command line argument '--help'.  Try: 'clang-tblgen.exe --help'</span></span></div>
<div><span style="background-color:rgb(255,255,0); font-size:8pt; font-family:Consolas,monospace"><span style="font-family:Consolas,monospace">clang-tblgen.exe: Did you mean '--color'?</span></span><br>
</div>
<p><span style="text-decoration:underline">All other commands</span> of tblgen.exe
<strong>do not work </strong>as well(beside of <span style="font-family: Consolas, monospace;">--version</span>), when using Debug MSVC. It blocks the whole build process at all.<br>
</p>
<p><br>
</p>
<p>When using Release builds, both compilers work fine. What's the problem could be?<br>
</p>
<p><br>
</p>
<p>Help please.<br>
</p>
<p><br>
</p>
<p>Regards,<br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<hr>
<div><b>Denys Petrov</b></div>
<div>Senior ó++ Developer | Kharkiv, Ukraine</div>
<div><br>
</div>
<div></div>
</div>
</div>
</body>
</html>