aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/macvim.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/macvim.rb')
-rw-r--r--Library/Formula/macvim.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/macvim.rb b/Library/Formula/macvim.rb
index 594948a5a..3d1c46815 100644
--- a/Library/Formula/macvim.rb
+++ b/Library/Formula/macvim.rb
@@ -60,7 +60,7 @@ class Macvim < Formula
# on the Mac. Note configure detects brewed python correctly, but that
# is ignored.
# See https://github.com/mxcl/homebrew/issues/17908
- ENV.prepend 'LDFLAGS', "-L#{python2.libdir} -F#{python2.framework}" if python.brewed?
+ ENV.prepend 'LDFLAGS', "-L#{python2.libdir} -F#{python2.framework}" if python && python.brewed?
unless MacOS::CLT.installed?
# On Xcode-only systems: