diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/sbcl.rb | 10 |
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 |
