Commit 3c39a902 authored by Jarred Nicholls's avatar Jarred Nicholls
Browse files

<third_party/WebKit> FIXUP: Prevent a python IOError on Windows


The bison script for compiling grammars suffers from the MAX_PATH IOError
issue on Windows. This occurs when doing a shadow build that results in
large relative paths in the generated GYP actions.

Change-Id: Ic875a818ee0cda85efcb3ccebaf885872aed8746
Reviewed-by: default avatarMichael Bruning <michael.bruning@digia.com>
Reviewed-by: default avatarJarred Nicholls <jarred.nicholls@gmail.com>
No related merge requests found
Showing with 13 additions and 2 deletions
......@@ -41,11 +41,12 @@ import os
import os.path
import subprocess
import sys
from utilities import abs
assert len(sys.argv) == 3 or len(sys.argv) == 4
inputFile = sys.argv[1]
outputDir = sys.argv[2]
inputFile = abs(sys.argv[1])
outputDir = abs(sys.argv[2])
bisonExe = 'bison'
if len(sys.argv) > 3:
bisonExe = sys.argv[3]
......
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
def abs(filename):
# open, abspath, etc. are all limited to the 260 char MAX_PATH and this causes
# problems when we try to resolve long relative paths in the WebKit directory structure.
return os.path.normpath(os.path.join(os.getcwd(), filename))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment