Undocument return value of ENV.deparallelize

It's not clear whether it returns MAKEFLAGS with or without -j<n>, and
neither is particularly useful behavior, given you can easily get the
exact value by calling ENV["MAKEFLAGS"]. So let's not commit to this
API.
This commit is contained in:
Jack Nagel 2015-06-12 20:14:04 -04:00
parent c1fb7a8e4a
commit aad4ed7faa
2 changed files with 0 additions and 2 deletions

View File

@ -81,7 +81,6 @@ module Stdenv
# Removes the MAKEFLAGS environment variable, causing make to use a single job.
# This is useful for makefiles with race conditions.
# When passed a block, MAKEFLAGS is removed only for the duration of the block and is restored after its completion.
# Returns the value of MAKEFLAGS.
def deparallelize
old = self['MAKEFLAGS']
remove 'MAKEFLAGS', /-j\d+/

View File

@ -245,7 +245,6 @@ module Superenv
# Removes the MAKEFLAGS environment variable, causing make to use a single job.
# This is useful for makefiles with race conditions.
# When passed a block, MAKEFLAGS is removed only for the duration of the block and is restored after its completion.
# Returns the value of MAKEFLAGS.
def deparallelize
old = delete('MAKEFLAGS')
if block_given?