diff options
| author | Trevor Fancher | 2011-09-04 21:56:03 -0500 |
|---|---|---|
| committer | Charlie Sharpsteen | 2011-09-12 11:05:57 -0700 |
| commit | 471288b90a9a8305c99b43833a57963ecb2c8b8e (patch) | |
| tree | 28225e0c9a50fe80d2908415e8e227350b4cc6e1 /Library/Formula/llvm.rb | |
| parent | 89f51769db3898caf959fca6f926b0f58f561ed7 (diff) | |
| download | homebrew-471288b90a9a8305c99b43833a57963ecb2c8b8e.tar.bz2 | |
LLVM: Add --jit option
Add --enable-jit to configure_options if --jit is used as an option when
installing LLVM.
Closes #7426.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library/Formula/llvm.rb')
| -rw-r--r-- | Library/Formula/llvm.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Formula/llvm.rb b/Library/Formula/llvm.rb index 159bc8004..7078e6213 100644 --- a/Library/Formula/llvm.rb +++ b/Library/Formula/llvm.rb @@ -6,6 +6,7 @@ def build_analyzer?; ARGV.include? '--analyzer'; end def build_universal?; ARGV.build_universal?; end def build_shared?; ARGV.include? '--shared'; end def build_rtti?; ARGV.include? '--rtti'; end +def build_jit?; ARGV.include? '--jit'; end class Clang < Formula homepage 'http://llvm.org/' @@ -33,7 +34,8 @@ class Llvm < Formula ['--shared', 'Build shared library'], ['--all-targets', 'Build all target backends'], ['--rtti', 'Build with RTTI information'], - ['--universal', 'Build both i386 and x86_64 architectures']] + ['--universal', 'Build both i386 and x86_64 architectures'], + ['--jit', 'Build with Just In Time (JIT) compiler functionality']] end def install @@ -64,6 +66,7 @@ class Llvm < Formula end configure_options << "--enable-shared" if build_shared? + configure_options << "--enable-jit" if build_jit? system "./configure", *configure_options |
