diff options
author | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-20 20:49:46 -0500 |
---|---|---|
committer | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-23 20:18:47 -0500 |
commit | 12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch) | |
tree | 352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/llvmat6/.make.sh-auto | |
parent | a2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff) |
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/llvmat6/.make.sh-auto')
-rw-r--r-- | homebrew/llvmat6/.make.sh-auto | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/homebrew/llvmat6/.make.sh-auto b/homebrew/llvmat6/.make.sh-auto new file mode 100644 index 000000000..063475027 --- /dev/null +++ b/homebrew/llvmat6/.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 |