summaryrefslogtreecommitdiff
path: root/homebrew/llvmat39/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/llvmat39/.make.sh-auto')
-rw-r--r--homebrew/llvmat39/.make.sh-auto17
1 files changed, 17 insertions, 0 deletions
diff --git a/homebrew/llvmat39/.make.sh-auto b/homebrew/llvmat39/.make.sh-auto
new file mode 100644
index 000000000..063475027
--- /dev/null
+++ b/homebrew/llvmat39/.make.sh-auto
@@ -0,0 +1,17 @@
+pkg:setup
+ENV.libcxx if ENV.compiler == :clang
+(buildpath/"tools/clang").install resource("clang")
+(buildpath/"tools/clang/tools/extra").install resource("clang-extra-tools")
+(buildpath/"projects/openmp").install resource("openmp")
+(buildpath/"projects/libcxx").install resource("libcxx")
+(buildpath/"projects/libunwind").install resource("libunwind")
+(buildpath/"tools/lld").install resource("lld")
+(buildpath/"tools/polly").install resource("polly")
+(buildpath/"projects/compiler-rt").install resource("compiler-rt")
+ENV.permit_arch_flags
+args = %W[-DLIBOMP_ARCH=x86_64 -DLINK_POLLY_INTO_TOOLS=ON -DLLVM_BUILD_EXTERNAL_COMPILER_RT=ON -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_ENABLE_EH=ON -DLLVM_ENABLE_FFI=ON -DLLVM_ENABLE_LIBCXX=ON -DLLVM_ENABLE_RTTI=ON -DLLVM_INCLUDE_DOCS=OFF -DLLVM_INSTALL_UTILS=ON -DLLVM_OPTIMIZED_TABLEGEN=ON -DLLVM_TARGETS_TO_BUILD=all -DWITH_POLLY=ON -DFFI_INCLUDE_DIR=#{Formula["libffi"].opt_lib}/libffi-#{Formula["libffi"].version}/include -DFFI_LIBRARY_DIR=#{Formula["libffi"].opt_lib} -DLLVM_CREATE_XCODE_TOOLCHAIN=ON ]
+mkdir "build" && cd build
+cmake -G Unix Makefiles .. *(std_cmake_args + args)
+make
+make DESTDIR=${PKG_DEST} install
+make DESTDIR=${PKG_DEST} install-xcode-toolchain