Skip to content

Commit

Permalink
Merge pull request #10416 from MikeMcQuaid/bootsnap_tests
Browse files Browse the repository at this point in the history
homebrew_bootsnap: fix brew tests.
  • Loading branch information
MikeMcQuaid committed Jan 25, 2021
2 parents 95c6e92 + 85923ae commit 1f008d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Library/Homebrew/homebrew_bootsnap.rb
Expand Up @@ -23,12 +23,14 @@

ENV.delete("HOMEBREW_BOOTSNAP_RETRY")

tmp = ENV["HOMEBREW_TEMP"] || ENV["HOMEBREW_DEFAULT_TEMP"]
raise "Needs HOMEBREW_TEMP or HOMEBREW_DEFAULT_TEMP!" unless tmp

Bootsnap.setup(
cache_dir: "#{ENV["HOMEBREW_TEMP"]}/homebrew-bootsnap",
cache_dir: "#{tmp}/homebrew-bootsnap",
development_mode: false, # TODO: use ENV["HOMEBREW_DEVELOPER"]?,
load_path_cache: true,
autoload_paths_cache: true,
disable_trace: true,
compile_cache_iseq: true,
compile_cache_yaml: true,
)

0 comments on commit 1f008d5

Please sign in to comment.