clean up expect code when not running tests

This commit is contained in:
Folkert 2022-07-27 12:26:03 +02:00
parent 91ea71c7aa
commit 498004c554
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
3 changed files with 11 additions and 4 deletions

View file

@ -171,7 +171,7 @@ comptime {
exportUtilsFn(expect.expectFailedFinalize, "expect_failed_finalize");
// sets the buffer used for expect failures
@export(expect.setMmappedFile, .{ .name = "set_mmapped_file", .linkage = .Strong });
@export(expect.setMmappedFile, .{ .name = "set_mmapped_file", .linkage = .Weak });
}
if (builtin.target.cpu.arch == .aarch64) {