treat all whitespace as a delimiter in GYP_DEFINES
gyp itself treats any whitespace as a delimiter in GYP_DEFINES, this script should behave the same. NOTRY=true Review URL: https://codereview.chromium.org/290173005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271851 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
2
third_party/binutils/download.py
vendored
2
third_party/binutils/download.py
vendored
@ -40,7 +40,7 @@ def WriteFile(filename, content):
|
||||
|
||||
def GetArch():
|
||||
gyp_host_arch = re.search(
|
||||
'host_arch=([^ ]*)', os.environ.get('GYP_DEFINES', ''))
|
||||
'host_arch=(\S*)', os.environ.get('GYP_DEFINES', ''))
|
||||
if gyp_host_arch:
|
||||
arch = gyp_host_arch.group(1)
|
||||
# This matches detect_host_arch.py.
|
||||
|
Reference in New Issue
Block a user