Skip to content
This repository
Browse code

"ruby" formula: add "--universal" flag for arch=x86_64,i386

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information...
commit f282737d6fd902a55561d8f652981aebe6a6dbb8 1 parent 0cceae6
Mislav Marohnić authored adamv committed

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  Library/Formula/ruby.rb
2  Library/Formula/ruby.rb
@@ -13,6 +13,7 @@ def options
13 13
     [
14 14
       ["--with-suffix", "Add a 19 suffix to commands"],
15 15
       ["--with-doc", "Install with the Ruby documentation"],
  16
+      ["--universal", "Compile a universal binary (arch=x86_64,i386)"],
16 17
     ]
17 18
   end
18 19
 
@@ -48,6 +49,7 @@ def install
48 49
             "--enable-shared"]
49 50
 
50 51
     args << "--program-suffix=19" if ARGV.include? "--with-suffix"
  52
+    args << "--with-arch=x86_64,i386" if ARGV.include? "--universal"
51 53
 
52 54
     # Put gem, site and vendor folders in the HOMEBREW_PREFIX
53 55
 

0 notes on commit f282737

Please sign in to comment.
Something went wrong with that request. Please try again.