From 8cf69fac3f5a3cf09143bfb574feb44bca2a1dff Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 24 Jul 2014 08:46:24 +0100 Subject: [PATCH] OS::Mac: allow clearing compiler version cache. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without this it’s impossible for brew-test-bot to be able to verify if installing GCC has allowed it to fix a compiler selection failure. --- Library/Homebrew/os/mac.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb index 6deea1d0f1..78afb8794f 100644 --- a/Library/Homebrew/os/mac.rb +++ b/Library/Homebrew/os/mac.rb @@ -129,6 +129,12 @@ module OS end end + def clear_version_cache + @gcc_40_build_version = @gcc_42_build_version = @llvm_build_version = nil + @clang_version = @clang_build_version = nil + @non_apple_gcc_version = {} + end + # See these issues for some history: # http://github.com/Homebrew/homebrew/issues/13 # http://github.com/Homebrew/homebrew/issues/41