<div dir="ltr"><div dir="ltr">On Wed, Jan 15, 2020 at 11:14 AM Luke Drummond <<a href="mailto:luke.drummond@codeplay.com">luke.drummond@codeplay.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed Jan 15, 2020 at 6:58 PM, Reid Kleckner wrote:<br>
> Does the same limitation exist in VS 2017? I think that's our support<br>
> floor<br>
> these days:<br>
> <a href="https://llvm.org/docs/GettingStarted.html#host-c-toolchain-both-compiler-and-standard-library" rel="noreferrer" target="_blank">https://llvm.org/docs/GettingStarted.html#host-c-toolchain-both-compiler-and-standard-library</a><br>
><br>
It appears that all releases including the latest 2019 are affected.<br>
><br>
> One *could* make the tablegen behavior conditional on the compiler, and<br>
> generate the character arrays for VS, and strings for other compilers.<br>
> It<br>
> has the potential to create MSVC only issues, but it seems harmless<br>
> enough...<br>
I can't see any current `#ifdef _MSCV_VER` usage in tablegen but I'm happy to<br>
besmirch it for this.<br></blockquote><div><br></div><div>I think the cleanest way to do this would be to have a cl::opt to control how string tables are emitted, and then control the default with `#if defined(_MSC_VER) && !defined(__clang__)`. The !clang check is so I get the benefits of this locally with clang-cl. :)</div></div></div>