Don't load the full debugger when readline is the formula being installed
Fixes Homebrew/homebrew#27842.
This commit is contained in:
parent
4365292374
commit
25c7b49eee
@ -200,7 +200,7 @@ class FormulaInstaller
|
|||||||
# HACK: If readline is present in the dependency tree, it will clash
|
# HACK: If readline is present in the dependency tree, it will clash
|
||||||
# with the stdlib's Readline module when the debugger is loaded
|
# with the stdlib's Readline module when the debugger is loaded
|
||||||
def perform_readline_hack
|
def perform_readline_hack
|
||||||
if f.recursive_dependencies.any? { |d| d.name == "readline" } && debug?
|
if (f.recursive_dependencies.any? { |d| d.name == "readline" } || f.name == "readline") && debug?
|
||||||
ENV['HOMEBREW_NO_READLINE'] = '1'
|
ENV['HOMEBREW_NO_READLINE'] = '1'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user