llvm: option to build without assertions.

Closes Homebrew/homebrew#16449.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
master
Elliot Saba 2012-12-06 12:21:07 -08:00 committed by Mike McQuaid
parent ab4f0574a9
commit 1bf78f6793
1 changed files with 3 additions and 0 deletions

View File

@ -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"