Prevent building example when use as module
This commit is contained in:
parent
d503ce7dea
commit
e61c5f775d
@ -29,6 +29,7 @@ pub fn build(b: *std.Build) !void {
|
||||
mod.linkSystemLibrary("gcc_s", .{});
|
||||
}
|
||||
|
||||
if (b.pkg_hash.len == 0) {
|
||||
var threaded: std.Io.Threaded = .init_single_threaded;
|
||||
const io = threaded.io();
|
||||
|
||||
@ -57,3 +58,4 @@ pub fn build(b: *std.Build) !void {
|
||||
run_step.dependOn(&run_cmd.step);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user