From 1bf78f6793691456b8fef924679a0f1775c504b4 Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Thu, 6 Dec 2012 12:21:07 -0800 Subject: [PATCH] llvm: option to build without assertions. Closes Homebrew/homebrew#16449. Signed-off-by: Mike McQuaid --- Formula/llvm.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Formula/llvm.rb b/Formula/llvm.rb index 3708ac37e08..cdd33ec8f60 100644 --- a/Formula/llvm.rb +++ b/Formula/llvm.rb @@ -35,6 +35,7 @@ class Llvm < Formula option 'shared', 'Build LLVM as a shared library' option 'all-targets', 'Build all target backends' option 'rtti', 'Build with C++ RTTI' + option 'disable-assertions', 'Speeds up LLVM, but provides less debug information' def install if build.universal? and build.include? 'shared' @@ -72,6 +73,8 @@ class Llvm < Formula end args << "--enable-shared" if build.include? 'shared' + args << "--disable-assertions" if build.include? 'disable-assertions' + system "./configure", *args system "make install"