diff options
author | scottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-03 20:17:14 +0000 |
---|---|---|
committer | scottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-03 20:17:14 +0000 |
commit | 86ca572314e5d1c6198ab515a16d3031b62d2810 (patch) | |
tree | d757e10190a8b3f87003d17c0cf5455fefc0b5fe /build/gyp_chromium | |
parent | 1d3ff4f926b43d8693a69f1873abcdb23fe9e5df (diff) | |
download | chromium_src-86ca572314e5d1c6198ab515a16d3031b62d2810.zip chromium_src-86ca572314e5d1c6198ab515a16d3031b62d2810.tar.gz chromium_src-86ca572314e5d1c6198ab515a16d3031b62d2810.tar.bz2 |
Revert 254427 "Add free space print to see how near edge bots are"
Not working for some reason and makes the output confusing, so
revert for now.
> Add free space print to see how near edge bots are
>
> Temporarily for trybots to see how close to the edge they are.
>
> TBR=iannucci@chromium.org
> BUG=348350
>
> Review URL: https://codereview.chromium.org/183923014
TBR=scottmg@chromium.org
Review URL: https://codereview.chromium.org/183833015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254547 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/gyp_chromium')
-rwxr-xr-x | build/gyp_chromium | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/build/gyp_chromium b/build/gyp_chromium index a6300a3..97179c1 100755 --- a/build/gyp_chromium +++ b/build/gyp_chromium @@ -7,7 +7,6 @@ # This script is wrapper for Chromium that adds some support for how GYP # is invoked by Chromium beyond what can be done in the gclient hooks. -import ctypes import glob import gyp_helper import json @@ -394,14 +393,6 @@ def CopyVsRuntimeDlls(output_dir, runtime_dirs): copy_runtime(out_release_nacl64, x64, 'msvc%s120.dll') -def GetFreeSpaceMBWindows(path): - """Returns the number of mebibytes free for a given directory.""" - free_bytes = ctypes.c_ulonglong(0) - ctypes.windll.kernel32.GetDiskFreeSpaceExW( - ctypes.c_wchar_p(path), None, None, ctypes.pointer(free_bytes)) - return free_bytes.value / 1024 / 1024 - - if __name__ == '__main__': args = sys.argv[1:] @@ -525,12 +516,8 @@ if __name__ == '__main__': # Include the VS runtime in the PATH in case it's not machine-installed. runtime_path = ';'.join(vs2013_runtime_dll_dirs) os.environ['PATH'] = runtime_path + ';' + os.environ['PATH'] - # TODO(scottmg): Temporarily add free space print to try to see how close - # we're getting to failures on windows bots. http://crbug.com/348350 - print('Using automatic toolchain in %s (%s edition), free space: %dM.' % ( - toolchain, - 'Pro' if version_is_pro else 'Express', - GetFreeSpaceMBWindows(GetOutputDirectory()))) + print('Using automatic toolchain in %s (%s edition).' % ( + toolchain, 'Pro' if version_is_pro else 'Express')) # If CHROMIUM_GYP_SYNTAX_CHECK is set to 1, it will invoke gyp with --check # to enfore syntax checking. |