From 16a58ddd037a2d559b7944152f844298b4e0e08f Mon Sep 17 00:00:00 2001 From: lsq Date: Sat, 27 Sep 2025 16:48:35 +0800 Subject: [PATCH] strip double quote in path --- gyp/pylib/gyp/generator/make.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gyp/pylib/gyp/generator/make.py b/gyp/pylib/gyp/generator/make.py index a9fe08c62f..4c2498a847 100644 --- a/gyp/pylib/gyp/generator/make.py +++ b/gyp/pylib/gyp/generator/make.py @@ -2484,6 +2484,8 @@ def Pchify(self, path, lang): def Absolutify(self, path): """Convert a subdirectory-relative path into a base-relative path. Skips over paths that contain variables.""" + """In MINGW node -p return a path with double quote""" + path = path.strip('"') if "$(" in path: # Don't call normpath in this case, as it might collapse the # path too aggressively if it features '..'. However it's still