Skip to content

Commit

Permalink
llvm: build with ninja
Browse files Browse the repository at this point in the history
Fixes #35513.
Closes #35562.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
  • Loading branch information
goxberry authored and fxcoudert committed Dec 31, 2018
1 parent 294de6d commit f37f92a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Formula/llvm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ class Llvm < Formula

# https://llvm.org/docs/GettingStarted.html#requirement
depends_on "cmake" => :build
depends_on "ninja" => :build
depends_on "libffi"

depends_on "python@2" if MacOS.version <= :snow_leopard
Expand Down Expand Up @@ -186,10 +187,10 @@ def install
]

mkdir "build" do
system "cmake", "-G", "Unix Makefiles", "..", *(std_cmake_args + args)
system "make"
system "make", "install"
system "make", "install-xcode-toolchain"
system "cmake", "-G", "Ninja", "..", *(std_cmake_args + args)
system "ninja"
system "ninja", "install"
system "ninja", "install-xcode-toolchain"
end

(share/"clang/tools").install Dir["tools/clang/tools/scan-{build,view}"]
Expand Down

0 comments on commit f37f92a

Please sign in to comment.