From 0c7abfe83c5bb300c43d33ff8b231bccb6fc54f3 Mon Sep 17 00:00:00 2001 From: Xavier Lacoste Date: Tue, 8 Jan 2013 16:46:02 +0100 Subject: open-mpi: add MPI_THREAD_MULTIPLE support. Closes #16956. Signed-off-by: Mike McQuaid --- Library/Formula/open-mpi.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Formula/open-mpi.rb b/Library/Formula/open-mpi.rb index 48f51df37..278eaeaa0 100644 --- a/Library/Formula/open-mpi.rb +++ b/Library/Formula/open-mpi.rb @@ -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' -- cgit v1.2.3