summaryrefslogtreecommitdiff
path: root/homebrew/ldc/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/ldc/.make.sh-auto')
-rw-r--r--homebrew/ldc/.make.sh-auto8
1 files changed, 8 insertions, 0 deletions
diff --git a/homebrew/ldc/.make.sh-auto b/homebrew/ldc/.make.sh-auto
new file mode 100644
index 000000000..0a9b1f070
--- /dev/null
+++ b/homebrew/ldc/.make.sh-auto
@@ -0,0 +1,8 @@
+pkg:setup
+ENV.cxx11
+(buildpath/"ldc-bootstrap").install resource("ldc-bootstrap")
+mkdir "build" && cd build
+args = std_cmake_args + %W[-DLLVM_ROOT_DIR=#{Formula["llvm"].opt_prefix} -DINCLUDE_INSTALL_DIR=#{include}/dlang/ldc -DD_COMPILER=#{buildpath}/ldc-bootstrap/bin/ldmd2 -DLDC_WITH_LLD=OFF -DRT_ARCHIVE_WITH_LDC=OFF ]
+cmake .. *args
+make
+make DESTDIR=${PKG_DEST} install