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:
parent
c1fb7a8e4a
commit
aad4ed7faa
@ -81,7 +81,6 @@ module Stdenv
|
|||||||
# Removes the MAKEFLAGS environment variable, causing make to use a single job.
|
# Removes the MAKEFLAGS environment variable, causing make to use a single job.
|
||||||
# This is useful for makefiles with race conditions.
|
# 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.
|
# 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
|
def deparallelize
|
||||||
old = self['MAKEFLAGS']
|
old = self['MAKEFLAGS']
|
||||||
remove 'MAKEFLAGS', /-j\d+/
|
remove 'MAKEFLAGS', /-j\d+/
|
||||||
|
@ -245,7 +245,6 @@ module Superenv
|
|||||||
# Removes the MAKEFLAGS environment variable, causing make to use a single job.
|
# Removes the MAKEFLAGS environment variable, causing make to use a single job.
|
||||||
# This is useful for makefiles with race conditions.
|
# 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.
|
# 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
|
def deparallelize
|
||||||
old = delete('MAKEFLAGS')
|
old = delete('MAKEFLAGS')
|
||||||
if block_given?
|
if block_given?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user