[clang-cl] Don't expand /permissive- to /ZC:strictStrings yet
authorMarkus Böck <markus.boeck02@gmail.com>
Sat, 19 Jun 2021 11:28:12 +0000 (13:28 +0200)
committerMarkus Böck <markus.boeck02@gmail.com>
Sat, 19 Jun 2021 11:28:32 +0000 (13:28 +0200)
commitc9889c44ec5a4054833457c813e155f284703ef4
tree36a559f36e99501699219798529bdd05755f43ad
parenta1449a10dbcfcf353f4f761281c4e572b4ce9308
[clang-cl] Don't expand /permissive- to /ZC:strictStrings yet

Follow up on rGc70b0e808da8

/Zc:strictStrings is an alias to an option part of the -W group. When the driver tries to render the option back to a string for the cc1 invocation, it sadly gets rendered with the original spelling instead of the alias, causing issues reported here: https://reviews.llvm.org/D103773#inline-989447

I am thinking it's the best to revert this part of the patch until I figured out how to correctly add the arg and until /Zc:strictStrings- exists/is needed.
clang/lib/Driver/ToolChains/MSVC.cpp