Skip to content

Commit

Permalink
enable patchelf.rb writing for devs.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmNULL committed Aug 28, 2020
1 parent 49fa3cc commit 0dcfdbe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Library/Homebrew/os/linux/global.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# frozen_string_literal: true

# enables experimental patchelf.rb write support.
HOMEBREW_PATCHELF_RB_WRITE = ENV["HOMEBREW_PATCHELF_RB_WRITE"].present?.freeze
HOMEBREW_PATCHELF_RB_WRITE = (
ENV["HOMEBREW_NO_PATCHELF_RB_WRITE"].blank? &&
(ENV["HOMEBREW_PATCHELF_RB_WRITE"].present? ||
(ENV["CI"].blank? && ENV["HOMEBREW_DEVELOPER"].present?))
).freeze

module Homebrew
DEFAULT_PREFIX ||= if Homebrew::EnvConfig.force_homebrew_on_linux?
Expand Down

0 comments on commit 0dcfdbe

Please sign in to comment.