aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/sbcl.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/sbcl.rb')
-rw-r--r--Library/Formula/sbcl.rb11
1 files changed, 4 insertions, 7 deletions
diff --git a/Library/Formula/sbcl.rb b/Library/Formula/sbcl.rb
index 2e35e70fd..bc5f3524d 100644
--- a/Library/Formula/sbcl.rb
+++ b/Library/Formula/sbcl.rb
@@ -67,20 +67,17 @@ class Sbcl < Formula
value =~ /[\x80-\xff]/
end
- SbclBootstrapBinaries.new.brew {
+ SbclBootstrapBinaries.new.brew do
# We only need the binaries for bootstrapping, so don't install anything:
command = Dir.pwd + "/src/runtime/sbcl"
core = Dir.pwd + "/output/sbcl.core"
xc_cmdline = "#{command} --core #{core} --disable-debugger --no-userinit --no-sysinit"
cd buildpath do
- if ARGV.build_32_bit?
- system "SBCL_ARCH=x86 ./make.sh --prefix='#{prefix}' --xc-host='#{xc_cmdline}'"
- else
- system "./make.sh --prefix='#{prefix}' --xc-host='#{xc_cmdline}'"
- end
+ ENV['SBCL_ARCH'] = 'x86' if ARGV.build_32_bit?
+ system "./make.sh", "--prefix=#{prefix}", "--xc-host=#{xc_cmdline}"
end
- }
+ end
ENV['INSTALL_ROOT'] = prefix
system "sh install.sh"