From 480c0269eedd567906bfa098f18f51a9e7fa2e38 Mon Sep 17 00:00:00 2001 From: "Carsten \"Tomcat\" Book" Date: Mon, 1 Aug 2016 09:12:55 +0200 Subject: [PATCH] Backed out changeset 0f6396641036 (bug 1289638) for breaking windows spidermonkey tests/builds --- build/windows_toolchain.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build/windows_toolchain.py b/build/windows_toolchain.py index 8e8e18c86c04..578fe71568be 100644 --- a/build/windows_toolchain.py +++ b/build/windows_toolchain.py @@ -29,18 +29,23 @@ import mozpack.path as mozpath VS_PATTERNS = [ { 'pattern': 'DIA SDK/bin/**', + # Various tools don't like spaces in filenames. So remove it. + 'rewrite': [('DIA SDK/', 'DIASDK/')], 'ignore': ( 'DIA SDK/bin/arm/**', ), }, { 'pattern': 'DIA SDK/idl/**', + 'rewrite': [('DIA SDK/', 'DIASDK/')], }, { 'pattern': 'DIA SDK/include/**', + 'rewrite': [('DIA SDK/', 'DIASDK/')], }, { 'pattern': 'DIA SDK/lib/**', + 'rewrite': [('DIA SDK/', 'DIASDK/')], 'ignore': ( 'DIA SDK/lib/arm/**', ), @@ -155,6 +160,9 @@ def resolve_files(): for p, f in finder.find(entry['pattern']): assert p.startswith(('VC/', 'DIA SDK/')) + for source, dest in entry.get('rewrite', []): + p = p.replace(source, dest) + yield p.encode('utf-8'), f for entry in SDK_PATTERNS: