Skip to content

Commit

Permalink
[SOL] Allow .freestanding to dynamically link
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed Apr 28, 2024
1 parent d6e5f4b commit 4715817
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zig/src/target.zig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ pub const default_stack_protector_buffer_size = 4;

pub fn cannotDynamicLink(target: std.Target) bool {
return switch (target.os.tag) {
.freestanding, .other => true,
// .freestanding is used for BPF targets on Solana
.other => true,
else => target.isSpirV(),
};
}
Expand Down

0 comments on commit 4715817

Please sign in to comment.