build: do not force install/build of core- examples

CoreApp users can call b.installArtifact(app.compile) themselves if
they desire that behavior

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-05-13 21:15:39 +02:00
parent 182c6a9180
commit 393320aa68

View file

@ -421,7 +421,6 @@ pub const CoreApp = struct {
compile.root_module.addImport("app", app_module);
// Installation step
app_builder.installArtifact(compile);
const install = app_builder.addInstallArtifact(compile, .{});
if (options.res_dirs) |res_dirs| {
for (res_dirs) |res| {
@ -770,7 +769,6 @@ fn buildCoreExamples(
const install_step = b.step("core-" ++ cmd_name, "Install core-" ++ cmd_name);
install_step.dependOn(&app.install.step);
b.getInstallStep().dependOn(install_step);
const run_step = b.step("run-core-" ++ cmd_name, "Run core-" ++ cmd_name);
run_step.dependOn(&app.run.step);