mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
fully take ownership of memcpy in the builtins
This commit is contained in:
parent
dd04d653c0
commit
829b71aa1f
4 changed files with 4 additions and 10 deletions
|
@ -6,12 +6,11 @@ const folly = @import("libc/folly.zig");
|
|||
const cpuid = @import("libc/cpuid.zig");
|
||||
|
||||
comptime {
|
||||
@export(memcpy, .{ .name = "roc_memcpy", .linkage = .Weak });
|
||||
// TODO: remove this workaround.
|
||||
// Wasm does not seem to respect that memcpy is weak.
|
||||
// This is probably a bug in our link steps somewhere.
|
||||
// Our wasm llvm pipeline always links in memcpy.
|
||||
// As such, our impl will conflict.
|
||||
if (arch != .wasm32) {
|
||||
@export(memcpy, .{ .name = "memcpy", .linkage = .Weak });
|
||||
@export(memcpy, .{ .name = "memcpy", .linkage = .Strong });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue