summaryrefslogtreecommitdiff
path: root/homebrew/llvmat4
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/llvmat4')
-rw-r--r--homebrew/llvmat4/.beer94
-rw-r--r--homebrew/llvmat4/.make.sh-auto17
-rw-r--r--homebrew/llvmat4/_metadata/description1
-rw-r--r--homebrew/llvmat4/_metadata/homepage1
-rw-r--r--homebrew/llvmat4/_metadata/name1
-rw-r--r--homebrew/llvmat4/_metadata/version1
-rwxr-xr-xhomebrew/llvmat4/download.sh1
7 files changed, 116 insertions, 0 deletions
diff --git a/homebrew/llvmat4/.beer b/homebrew/llvmat4/.beer
new file mode 100644
index 000000000..06dbf1b61
--- /dev/null
+++ b/homebrew/llvmat4/.beer
@@ -0,0 +1,94 @@
+{
+ "name": "LlvmAT4",
+ "description": "Next-gen compiler infrastructure",
+ "url": "https://releases.llvm.org/4.0.1/llvm-4.0.1.src.tar.xz",
+ "mirror": null,
+ "homepage": "https://llvm.org/",
+ "depends": [
+ {
+ "depend": "cmake",
+ "build-depend": true
+ },
+ {
+ "depend": "libffi",
+ "build-depend": false
+ }
+ ],
+ "resource": [
+ {
+ "name": "clang",
+ "url": "https://releases.llvm.org/4.0.1/cfe-4.0.1.src.tar.xz"
+ },
+ {
+ "name": "clang-extra-tools",
+ "url": "https://releases.llvm.org/4.0.1/clang-tools-extra-4.0.1.src.tar.xz"
+ },
+ {
+ "name": "compiler-rt",
+ "url": "https://releases.llvm.org/4.0.1/compiler-rt-4.0.1.src.tar.xz"
+ },
+ {
+ "name": "libcxx",
+ "url": "https://releases.llvm.org/4.0.1/libcxx-4.0.1.src.tar.xz"
+ },
+ {
+ "name": "libunwind",
+ "url": "https://releases.llvm.org/4.0.1/libunwind-4.0.1.src.tar.xz"
+ },
+ {
+ "name": "lld",
+ "url": "https://releases.llvm.org/4.0.1/lld-4.0.1.src.tar.xz"
+ },
+ {
+ "name": "lldb",
+ "url": "https://releases.llvm.org/4.0.1/lldb-4.0.1.src.tar.xz"
+ },
+ {
+ "name": "openmp",
+ "url": "https://releases.llvm.org/4.0.1/openmp-4.0.1.src.tar.xz"
+ },
+ {
+ "name": "polly",
+ "url": "https://releases.llvm.org/4.0.1/polly-4.0.1.src.tar.xz"
+ }
+ ],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "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\" do",
+ "system \"cmake\", \"-G\", \"Unix Makefiles\", \"..\", *(std_cmake_args + args)",
+ "system \"make\"",
+ "system \"make\", \"install\"",
+ "system \"make\", \"install-xcode-toolchain\""
+ ],
+ "version": "4.0.1",
+ "file": "llvm@4.rb"
+} \ No newline at end of file
diff --git a/homebrew/llvmat4/.make.sh-auto b/homebrew/llvmat4/.make.sh-auto
new file mode 100644
index 000000000..063475027
--- /dev/null
+++ b/homebrew/llvmat4/.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
diff --git a/homebrew/llvmat4/_metadata/description b/homebrew/llvmat4/_metadata/description
new file mode 100644
index 000000000..f6cad337e
--- /dev/null
+++ b/homebrew/llvmat4/_metadata/description
@@ -0,0 +1 @@
+Next-gen compiler infrastructure
diff --git a/homebrew/llvmat4/_metadata/homepage b/homebrew/llvmat4/_metadata/homepage
new file mode 100644
index 000000000..c83d21466
--- /dev/null
+++ b/homebrew/llvmat4/_metadata/homepage
@@ -0,0 +1 @@
+https://llvm.org/
diff --git a/homebrew/llvmat4/_metadata/name b/homebrew/llvmat4/_metadata/name
new file mode 100644
index 000000000..acbf88ef4
--- /dev/null
+++ b/homebrew/llvmat4/_metadata/name
@@ -0,0 +1 @@
+LlvmAT4
diff --git a/homebrew/llvmat4/_metadata/version b/homebrew/llvmat4/_metadata/version
new file mode 100644
index 000000000..1454f6ed4
--- /dev/null
+++ b/homebrew/llvmat4/_metadata/version
@@ -0,0 +1 @@
+4.0.1
diff --git a/homebrew/llvmat4/download.sh b/homebrew/llvmat4/download.sh
new file mode 100755
index 000000000..acc05d205
--- /dev/null
+++ b/homebrew/llvmat4/download.sh
@@ -0,0 +1 @@
+wget https://releases.llvm.org/4.0.1/llvm-4.0.1.src.tar.xz \ No newline at end of file