From 2005c332576584cb4cdce2e8a573445d8bca6220 Mon Sep 17 00:00:00 2001 From: Trevor Fancher Date: Sun, 4 Sep 2011 21:56:03 -0500 Subject: [PATCH] LLVM: Add --jit option Add --enable-jit to configure_options if --jit is used as an option when installing LLVM. Closes Homebrew/homebrew#7426. Signed-off-by: Charlie Sharpsteen --- Formula/llvm.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Formula/llvm.rb b/Formula/llvm.rb index 159bc800415..7078e6213f1 100644 --- a/Formula/llvm.rb +++ b/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