Fix depends generation under windows

Signed-off-by: Ivan Kukhta <Ivan.Kukhta@acronis.com>
This commit is contained in:
Ivan Kukhta 2021-04-06 19:53:55 +03:00
parent 367fb985bd
commit f347fef748

View File

@ -0,0 +1,29 @@
From 1ba71fabb78b18884e9f479f45a257bab50e8959 Mon Sep 17 00:00:00 2001
From: Nathan Sidwell <nathan@acm.org>
Date: Fri, 15 Jan 2021 06:47:13 -0800
Subject: [PATCH] preprocessor: Make quoting : [PR 95253]
Make doesn't need ':' quoting (in a filename).
PR preprocessor/95253
libcpp/
* mkdeps.c (munge): Do not escape ':'.
---
libcpp/mkdeps.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/libcpp/mkdeps.c b/libcpp/mkdeps.c
index 471e449a19d..1867e0089d7 100644
--- a/libcpp/mkdeps.c
+++ b/libcpp/mkdeps.c
@@ -162,7 +162,6 @@ munge (const char *str, const char *trail = nullptr)
/* FALLTHROUGH */
case '#':
- case ':':
buf[dst++] = '\\';
/* FALLTHROUGH */
--
2.29.2.windows.2