mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
fixes for zig tests Windows
This commit is contained in:
parent
2f511779a6
commit
2e0c83ae63
4 changed files with 21 additions and 16 deletions
|
@ -9,7 +9,10 @@ comptime {
|
|||
// TODO: remove this workaround.
|
||||
// Our wasm llvm pipeline always links in memcpy.
|
||||
// As such, our impl will conflict.
|
||||
if (arch != .wasm32) {
|
||||
if (builtin.is_test and builtin.os.tag == .windows) {
|
||||
// We don't need memcpy on Windows for tests because the tests are built with -lc
|
||||
// lld-link: error: duplicate symbol: memcpy
|
||||
} else if (arch != .wasm32) {
|
||||
@export(memcpy, .{ .name = "memcpy", .linkage = .Strong });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue