aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJose Santos2011-09-05 02:49:16 +0100
committerAdam Vandenberg2011-11-27 12:10:11 -0800
commitd8a5263f2666d728d9ad66075c91cd7a6d7af7a3 (patch)
tree096be6ca21694f6c6ecf3abac34b9509394bd47e /Library
parent391bc95c6565b136ca6027f655ea9e90c67b28cb (diff)
downloadhomebrew-d8a5263f2666d728d9ad66075c91cd7a6d7af7a3.tar.bz2
SBCL: Add --32bit option
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/sbcl.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/Library/Formula/sbcl.rb b/Library/Formula/sbcl.rb
index d300ba916..8cd0bdc18 100644
--- a/Library/Formula/sbcl.rb
+++ b/Library/Formula/sbcl.rb
@@ -21,7 +21,8 @@ class Sbcl < Formula
[
["--without-threads", "Build SBCL without support for native threads"],
["--with-ldb", "Include low-level debugger in the build"],
- ["--with-internal-xref", "Include XREF information for SBCL internals (increases core size by 5-6MB)"]
+ ["--with-internal-xref", "Include XREF information for SBCL internals (increases core size by 5-6MB)"],
+ ["--32bit", "Override arch detection and compile for 32-bits."]
]
end
@@ -66,7 +67,12 @@ class Sbcl < Formula
xc_cmdline = "#{command} --core #{core} --disable-debugger --no-userinit --no-sysinit"
Dir.chdir(build_directory)
- system "./make.sh --prefix='#{prefix}' --xc-host='#{xc_cmdline}'"
+
+ if ARGV.include? "--32bit"
+ system "SBCL_ARCH=x86 ./make.sh --prefix='#{prefix}' --xc-host='#{xc_cmdline}'"
+ else
+ system "./make.sh --prefix='#{prefix}' --xc-host='#{xc_cmdline}'"
+ end
}
ENV['INSTALL_ROOT'] = prefix