From cc314324a78b3d62850a163da9aab2a4108ee5d6 Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Tue, 13 Dec 2016 22:28:12 +0100 Subject: [PATCH] Use empty main instead of relying on main generation by compilers GDC doesn't seem to do this --- dub.json | 8 ++------ test/poodinis/testmain.d | 8 ++++++++ 2 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 test/poodinis/testmain.d diff --git a/dub.json b/dub.json index 0e30f7d..6b0f629 100644 --- a/dub.json +++ b/dub.json @@ -16,9 +16,7 @@ "sourcePaths": [ "test" ], - "dflags-dmd": [ - "-main" - ] + "mainSourceFile": "test/poodinis/testmain.d" }, { "name": "unittestVerbose", @@ -27,9 +25,7 @@ "sourcePaths": [ "test" ], - "dflags-dmd": [ - "-main" - ] + "mainSourceFile": "test/poodinis/testmain.d" }, { "name" : "quickstartExample", diff --git a/test/poodinis/testmain.d b/test/poodinis/testmain.d new file mode 100644 index 0000000..89846b0 --- /dev/null +++ b/test/poodinis/testmain.d @@ -0,0 +1,8 @@ +/** + * Poodinis Dependency Injection Framework + * Copyright 2014-2016 Mike Bierlee + * This software is licensed under the terms of the MIT license. + * The full terms of the license can be found in the LICENSE file. + */ + +void main() {}