Skip to content

Commit

Permalink
[SOL] Prohibit printing in SBF backend
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed Jun 16, 2024
1 parent c4f628b commit 1d3f28f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zig/lib/std/testing.zig
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub var base_allocator_instance = std.heap.FixedBufferAllocator.init("");
pub var log_level = std.log.Level.warn;

// Disable printing in tests for simple backends.
pub const backend_can_print = builtin.zig_backend != .stage2_spirv64;
pub const backend_can_print = builtin.zig_backend != .stage2_spirv64 and builtin.os.tag != .solana;

fn print(comptime fmt: []const u8, args: anytype) void {
if (@inComptime()) {
Expand Down

0 comments on commit 1d3f28f

Please sign in to comment.