llvm: build with optimizations and NDEBUG flag.

Closes Homebrew/homebrew#41669.
This commit is contained in:
Paweł Bylica 2015-07-13 19:25:33 +02:00 committed by Mike McQuaid
parent 77260de95b
commit 2974b2922d

View file

@ -133,7 +133,11 @@ class Llvm < Formula
args << "-DLLVM_ENABLE_RTTI=On" if build.with? "rtti"
args << "-DLLVM_ENABLE_ASSERTIONS=On" if build.with? "assertions"
if build.with? "assertions"
args << "-DLLVM_ENABLE_ASSERTIONS=On"
else
args << "-DCMAKE_CXX_FLAGS_RELEASE='-DNDEBUG'"
end
if build.universal?
ENV.permit_arch_flags