Skip to content

Commit 0e17165

Browse files
Fix #121: DMD not required, should the README change?
This adds support for building with LDC. Building with LDC will make it possible to create a fully statically linked binary for Linux and, possible, FreeBSD.
1 parent cc83cbc commit 0e17165

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ language: d
22
d:
33
- dmd-2.072.2
44
- dmd-2.071.2
5+
- ldc
6+
- ldc-beta
57

68
before_script: git fetch --unshallow
79
script: "dub --config=test"

README.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ The source code is available under the [Boost Software License 1.0](http://www.b
2626
#### Requirements
2727

2828
* libclang - [http://clang.llvm.org](http://clang.llvm.org) - 3.4 or later that is binary compatible with 3.4
29-
* DMD - [http://dlang.org/download.html](http://dlang.org/download.html) - 2.071.2 or later
30-
* Dub [http://code.dlang.org/download](http://code.dlang.org/download)
29+
* A D compiler - [DMD](http://dlang.org/download.html) 2.071.2 or later or [LDC](https://github.com/ldc-developers/ldc/releases/tag/v1.2.0) 1.2.0 or later
30+
* Dub [http://code.dlang.org/download](http://code.dlang.org/download) (also shipped with the compilers)
3131

3232
#### Building
3333

dstep/translator/IncludeHandler.d

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class IncludeHandler
2121
private string[string] submodules;
2222
private bool[string] includes;
2323
private bool[string] imports;
24-
static string[string] knownIncludes;
24+
immutable static string[string] knownIncludes;
2525

26-
static this ()
26+
shared static this ()
2727
{
2828
knownIncludes = [
2929
"complex" : "core.stdc.complex",

0 commit comments

Comments
 (0)