From 30865cf1a75a144629c6029ac55fbc744e330adf Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 8 Aug 2017 12:10:22 -0400 Subject: maker.org makefile supported compilers, make all_builds_debug - dmd ldc2 gdc --- org/sdp.org | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'org') diff --git a/org/sdp.org b/org/sdp.org index 63557ed..5eb1364 100644 --- a/org/sdp.org +++ b/org/sdp.org @@ -17,6 +17,8 @@ [[../maker.org][maker.org makefile]] [[./][org/]] * 0. version.txt (set version) :version: +** set program version + #+NAME: version_txt #+BEGIN_SRC d :tangle ../views/version.txt /+ obt - org generated file +/ @@ -28,6 +30,25 @@ struct Version { enum ver = Version(0, 18, 0); #+END_SRC +#+NAME: version_txt + +** compilation restrictions (supported compilers) + +http://dlang.org/spec/version.html#predefined-versions + +#+BEGIN_SRC d :tangle ../views/version.txt +version (Posix) { + version (DigitalMars) { + } else version (LDC) { + } else version (GNU) { + } else { + static assert (0, "Unsupported D compiler"); + } +} else { + static assert (0, "Unsupported D compiler"); +} +#+END_SRC + * 1. sdp (sisu document parser) :sdp: - deal with imports -- cgit v1.2.3