diff --git a/source/dub/dub.d b/source/dub/dub.d index d0c0c93..6b9ff23 100644 --- a/source/dub/dub.d +++ b/source/dub/dub.d @@ -368,6 +368,7 @@ GeneratorSettings settings; settings.compilerBinary = "dmd"; + settings.config = "application"; settings.compiler = getCompiler(settings.compilerBinary); settings.platform = settings.compiler.determinePlatform(settings.buildSettings, settings.compilerBinary); settings.buildType = "debug"; diff --git a/source/dub/generators/build.d b/source/dub/generators/build.d index 6459b69..4a7d4b8 100644 --- a/source/dub/generators/build.d +++ b/source/dub/generators/build.d @@ -115,9 +115,9 @@ on the other compilers. Later this should be integrated somehow in the build process (either in the package.json, or using a command line flag) */ - if( settings.compiler.name != "dmd" ){ + if( settings.compiler.name != "dmd" || !generate_binary ){ // setup for command line - settings.compiler.setTarget(buildsettings, settings.platform); + if( generate_binary ) settings.compiler.setTarget(buildsettings, settings.platform); settings.compiler.prepareBuildSettings(buildsettings, BuildSetting.commandLine); // write response file instead of passing flags directly to the compiler