aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorMike McQuaid2013-03-10 17:03:40 +0000
committerMike McQuaid2013-03-11 18:26:25 +0000
commit98352b3b4117a7c8ee6b9a540706cd2ac2960b6b (patch)
tree02d42f051a7cf6d45d0333166a57a0d9547c0123 /Library/Homebrew/extend
parent9837bbda550a45b7748f7d888c2b25d5a73abc03 (diff)
downloadbrew-98352b3b4117a7c8ee6b9a540706cd2ac2960b6b.tar.bz2
Don't run certain functions on non-MACOS.
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/ENV.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb
index ff51ced66..3cba7719c 100644
--- a/Library/Homebrew/extend/ENV.rb
+++ b/Library/Homebrew/extend/ENV.rb
@@ -201,6 +201,7 @@ module HomebrewEnvExtension
end
def macosxsdk v=MacOS.version
+ return unless MACOS
# Sets all needed lib and include dirs to CFLAGS, CPPFLAGS, LDFLAGS.
remove_macosxsdk
# Allow cool style of ENV.macosxsdk 10.8 here (no "" :)