diff --git a/source/dub/generators/build.d b/source/dub/generators/build.d index 115341f..0b2d313 100644 --- a/source/dub/generators/build.d +++ b/source/dub/generators/build.d @@ -480,7 +480,8 @@ auto result = prg_pid.wait(); enforce(result == 0, "Program exited with code "~to!string(result)); } - } else logInfo("Target is a library. Skipping execution."); + } else + enforce(false, "Target is a library. Skipping execution."); } void cleanupTemporaries() diff --git a/test/1-staticLib-simple/.no_run b/test/1-staticLib-simple/.no_run new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/1-staticLib-simple/.no_run