llvm: build with optimizations and NDEBUG flag.
Closes Homebrew/homebrew#41669.
This commit is contained in:
parent
77260de95b
commit
2974b2922d
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue