summaryrefslogtreecommitdiff
path: root/homebrew/boostmpi/.make.sh-auto
blob: c1dc8ab315fa3925263bb0807c7b58be9c28eda7 (plain)
1
2
3
4
5
6
7
8
9
pkg:setup
args = ["--prefix=#{prefix}", "--libdir=#{lib}", "-d2", "-j#{ENV.make_jobs}", "--layout=tagged-1.66", "--user-config=user-config.jam", "threading=multi,single", "link=shared,static"]
args << "cxxflags=-std=c++11"
if ENV.compiler == :clang
args << "cxxflags=-stdlib=libc++" << "linkflags=-stdlib=libc++"
end
open("user-config.jam", "a") do |file|
file.write "using darwin : : #{ENV.cxx} ;\n"
file.write "using mpi ;\n"