Wrapper for ldc2 to building windows binaries
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Тим 27e0550ed9 fix autodetect WLDC_PATH 4 months ago
bin fix autodetect WLDC_PATH 4 months ago
README.md Изменить 'README.md' 10 months ago

README.md

WLDC

This a wrapper for ldc2 to building windows binaries on Linux/OSX

Dependencies for building

  • ldc2
  • lld-link

Dependencies for runtime installer

  • bash
  • wget
  • unzip
  • 7z

Installation

Configure runtime

Runtime configured by system environments:

VERSION - version of ldc2. Default "1.12.0"
TAG - git tag. Default "v${VERSION}"
PLATFORM - platform (windows,linux,osx). Default "windows"
ARCH - architecture of LDC. Default "multilib"
EXT - extension of archive with ldc. Default "7z"

Install

After installing all dependencies, execute next commands:

git clone https://git.prime-hack.net/SR_team/wldc
chmod +x wldc/bin/download-wldc-runtime.sh wldc/bin/i686-wldc2.sh wldc/bin/x86_64-wldc2.sh
bash wldc/bin/download-wldc-runtime.sh

Add path /path/to/wldc/bin into $PATH

Reinstall runtime

cd /path/to/wldc/
git clean -xdf
bin/download-wldc-runtime.sh

Usage

wldc2.d app.d -of=app.exe