diff options
| author | Xiyue Deng | 2013-10-09 01:53:30 -0700 |
|---|---|---|
| committer | Xiyue Deng | 2013-10-27 06:01:00 -0700 |
| commit | 23b1c7ed2a37c53dcca2ce500b7332bed5e3cd98 (patch) | |
| tree | f26b31779c6ddf4cc16077af0c86b3fca33c88e7 /Library/Formula/open-mpi.rb | |
| parent | 3ba5aa62347dde6c7b3a456e70c9c72c889488a0 (diff) | |
| download | homebrew-23b1c7ed2a37c53dcca2ce500b7332bed5e3cd98.tar.bz2 | |
open-mpi: support C++11 mode.
* Disable silent rules for verbose build log.
* Include upstream patch to fix C++11 reserved string literal.
Closes #21452.
Diffstat (limited to 'Library/Formula/open-mpi.rb')
| -rw-r--r-- | Library/Formula/open-mpi.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/open-mpi.rb b/Library/Formula/open-mpi.rb index 0d4ad0876..75876772d 100644 --- a/Library/Formula/open-mpi.rb +++ b/Library/Formula/open-mpi.rb @@ -7,6 +7,7 @@ class OpenMpi < Formula option 'disable-fortran', 'Do not build the Fortran bindings' option 'enable-mpi-thread-multiple', 'Enable MPI_THREAD_MULTIPLE' + option :cxx11 conflicts_with 'mpich2', :because => 'both install mpi__ compiler wrappers' conflicts_with 'libevent', :because => 'both install same set of header files' @@ -15,6 +16,8 @@ class OpenMpi < Formula depends_on :fortran unless build.include? 'disable-fortran' def install + ENV.cxx11 if build.cxx11? + args = %W[ --prefix=#{prefix} --disable-dependency-tracking |
