aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormetacollin2015-04-15 23:41:14 -0600
committerXu Cheng2015-04-17 14:08:25 +0800
commit74e1f6b43ee83ba1511234e258c15a3b025a13eb (patch)
tree208edafd4f9696a45391ab7365d96db27f863092
parent61152c7d8d79e5e292994bdb554b4ad53d01054a (diff)
downloadhomebrew-74e1f6b43ee83ba1511234e258c15a3b025a13eb.tar.bz2
clang-omp: add C++ support
Closes #38707. Signed-off-by: Xu Cheng <xucheng@me.com>
-rw-r--r--Library/Formula/clang-omp.rb15
1 files changed, 13 insertions, 2 deletions
diff --git a/Library/Formula/clang-omp.rb b/Library/Formula/clang-omp.rb
index c9533381f..338eff6c6 100644
--- a/Library/Formula/clang-omp.rb
+++ b/Library/Formula/clang-omp.rb
@@ -23,16 +23,27 @@ class ClangOmp < Formula
sha256 "2717115e5ba491e3b8119311f0d792420ba41be34a89733b9880eb3d3c09fbe5"
end
+ resource "libcxx" do
+ url "https://github.com/llvm-mirror/libcxx/archive/release_35.tar.gz"
+ sha256 "df23b356ae1953de671d1dc9093568330e074bbe48cd6d93d16173a793550c71"
+ end
+
needs :cxx11
def install
- resource("compiler-rt").stage { (buildpath/"projects/compiler-rt").install Dir["*"] }
- resource("clang").stage { (buildpath/"tools/clang").install Dir["*"] }
+ (buildpath/"projects/compiler-rt").install resource("compiler-rt")
+ (buildpath/"tools/clang").install resource("clang")
+ (buildpath/"projects/libcxx").install resource "libcxx"
system "./configure", "--prefix=#{libexec}", "--enable-cxx11", "--enable-libcpp"
+ system "make"
system "make", "install"
+ system "make", "-C", "projects/libcxx", "install",
+ "DSTROOT=#{prefix}", "SYMROOT=#{buildpath}/projects/libcxx"
+
bin.install_symlink libexec/"bin/clang" => "clang-omp"
+ bin.install_symlink libexec/"bin/clang" => "clang-omp++"
end
test do