summaryrefslogtreecommitdiffstats
path: root/test/D/HelloWorld/CompileThenLinkTwoSteps/Image
diff options
context:
space:
mode:
authorRussel Winder <russel@winder.org.uk>2014-04-16 09:46:39 (GMT)
committerRussel Winder <russel@winder.org.uk>2014-04-16 09:46:39 (GMT)
commitda72e009ae9e2f450a601d52f2530338efa6a377 (patch)
treedf6efa619e83c0cfc7bd932ae3c9c786cf812246 /test/D/HelloWorld/CompileThenLinkTwoSteps/Image
parentd4f8c6e320484c106446918c37affdddacd5c7a3 (diff)
downloadSCons-da72e009ae9e2f450a601d52f2530338efa6a377.zip
SCons-da72e009ae9e2f450a601d52f2530338efa6a377.tar.gz
SCons-da72e009ae9e2f450a601d52f2530338efa6a377.tar.bz2
The changes to the D support evolved over the last many months packaged as a single changeset.
Diffstat (limited to 'test/D/HelloWorld/CompileThenLinkTwoSteps/Image')
-rw-r--r--test/D/HelloWorld/CompileThenLinkTwoSteps/Image/SConstruct_template11
-rw-r--r--test/D/HelloWorld/CompileThenLinkTwoSteps/Image/helloWorld.d6
2 files changed, 17 insertions, 0 deletions
diff --git a/test/D/HelloWorld/CompileThenLinkTwoSteps/Image/SConstruct_template b/test/D/HelloWorld/CompileThenLinkTwoSteps/Image/SConstruct_template
new file mode 100644
index 0000000..425970a
--- /dev/null
+++ b/test/D/HelloWorld/CompileThenLinkTwoSteps/Image/SConstruct_template
@@ -0,0 +1,11 @@
+# -*- mode:python; coding:utf-8; -*-
+
+import os
+
+environment = Environment(
+ ENV=os.environ,
+ tools=['link', '{}'])
+
+objects = environment.Object('helloWorld.d')
+
+environment.Program('helloWorld', objects)
diff --git a/test/D/HelloWorld/CompileThenLinkTwoSteps/Image/helloWorld.d b/test/D/HelloWorld/CompileThenLinkTwoSteps/Image/helloWorld.d
new file mode 100644
index 0000000..4d95b24
--- /dev/null
+++ b/test/D/HelloWorld/CompileThenLinkTwoSteps/Image/helloWorld.d
@@ -0,0 +1,6 @@
+import std.stdio;
+
+int main(immutable string[] args) {
+ writeln("Hello World.");
+ return 0;
+}