open-mpi: add MPI_THREAD_MULTIPLE support.

Closes Homebrew/homebrew#16956.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Xavier Lacoste 2013-01-08 16:46:02 +01:00 committed by Mike McQuaid
parent 6a68d6920e
commit 7799644cbb

View file

@ -15,6 +15,7 @@ class OpenMpi < Formula
option 'disable-fortran', 'Do not build the Fortran bindings'
option 'test', 'Verify the build with make check'
option 'enable-mpi-thread-multiple', 'Enable MPI_THREAD_MULTIPLE'
def install
args = %W[
@ -28,6 +29,10 @@ class OpenMpi < Formula
ENV.fortran
end
if build.include? 'enable-mpi-thread-multiple'
args << '--enable-mpi-thread-multiple'
end
system './configure', *args
system 'make V=1 all'
system 'make V=1 check' if build.include? 'test'