From 44849eb93a99345b3c63046fac46ea6d0f32f35f Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 8 Jun 2018 10:23:18 -0700 Subject: [PATCH] tools,gyp: fix regex for version matching Tool versions can be 10 and higher. Float patch from node-gyp to accommodate this fact of life. Refs: https://github.com/nodejs/node-gyp/commit/293092c362febffe19f72712467565045e08e8f1 --- tools/gyp/pylib/gyp/xcode_emulation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gyp/pylib/gyp/xcode_emulation.py b/tools/gyp/pylib/gyp/xcode_emulation.py index 667c53695a12d8..9082b9da3589a6 100644 --- a/tools/gyp/pylib/gyp/xcode_emulation.py +++ b/tools/gyp/pylib/gyp/xcode_emulation.py @@ -1403,7 +1403,7 @@ def XcodeVersion(): except: version = CLTVersion() if version: - version = re.match(r'(\d\.\d\.?\d*)', version).groups()[0] + version = re.match(r'(\d+\.\d+\.?\d*)', version).groups()[0] else: raise GypError("No Xcode or CLT version detected!") # The CLT has no build information, so we return an empty string.