aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/chicken.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/chicken.rb')
-rw-r--r--Library/Formula/chicken.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/Library/Formula/chicken.rb b/Library/Formula/chicken.rb
index 2643e9974..29314af4b 100644
--- a/Library/Formula/chicken.rb
+++ b/Library/Formula/chicken.rb
@@ -18,11 +18,10 @@ class Chicken < Formula
# Chicken uses a non-standard var. for this
args = ["PREFIX=#{prefix}", "PLATFORM=macosx", "C_COMPILER=#{ENV.cc}"]
args << "ARCH=x86-64" if MacOS.prefer_64_bit?
- # necessary to fix build on older Xcodes due to different path
- if MacOS::Xcode.installed?
- args << "XCODE_DEVELOPER=#{MacOS::Xcode.prefix}"
- args << "XCODE_TOOL_PATH=#{MacOS::Xcode.toolchain_path}/usr/bin"
- end
+ # necessary to fix build on older Xcodes due to different path,
+ # and to fix the build on CLT-only systems
+ args << "XCODE_DEVELOPER=#{MacOS::Xcode.prefix}"
+ args << "XCODE_TOOL_PATH=#{MacOS::Xcode.toolchain_path}/usr/bin"
system "make", *args
system "make", "install", *args
end