Skip to content

Commit

Permalink
llvm: use cmake to invoke make indirectly
Browse files Browse the repository at this point in the history
Building llvm with mlir succeeded on my local machine with a similar
procedure (except using ninja), so hopefully this works.
  • Loading branch information
carlocab committed Nov 24, 2020
1 parent 0431c88 commit 33a2382
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Formula/llvm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ def install
-DLLVM_BUILD_EXTERNAL_COMPILER_RT=ON
-DLLVM_LINK_LLVM_DYLIB=ON
-DLLVM_BUILD_LLVM_C_DYLIB=ON
-DLLVM_BUILD_EXAMPLES=ON
-DLLVM_ENABLE_ASSERTIONS=ON
-DLLVM_ENABLE_EH=ON
-DLLVM_ENABLE_FFI=ON
-DLLVM_ENABLE_LIBCXX=ON
Expand Down Expand Up @@ -142,8 +140,8 @@ def install
llvmpath = buildpath/"llvm"
mkdir llvmpath/"build" do
system "cmake", "-G", "Unix Makefiles", "..", *(std_cmake_args + args)
system "make"
system "make", "install"
system "cmake", "--build", "."
system "cmake", "--build", ".", "--target", "install"
system "make", "install-xcode-toolchain" if MacOS::Xcode.installed?
end

Expand Down

0 comments on commit 33a2382

Please sign in to comment.