From d7e5858a603ea46c5f0b95b19fd20bb67612777d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Thu, 20 Aug 2020 12:50:51 +0300 Subject: [PATCH] wrappers: Fix the output filtering for clang -v This makes the code actually do what was intended, for cases with multiple consecutive backslashes, each escaped to double backslashes. --- wrappers/clang-target-wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrappers/clang-target-wrapper.c b/wrappers/clang-target-wrapper.c index 4c77eeb..2ed0580 100644 --- a/wrappers/clang-target-wrapper.c +++ b/wrappers/clang-target-wrapper.c @@ -59,7 +59,7 @@ static void filter_stderr(char *buf, int n) { // Last output char was a backslash converted into a // forward slash. Ignore this one, but handle the next // one in case there's more. - last = ' '; + cur = ' '; } } else { buf[out++] = cur;