Fix emscripten exports

This commit is contained in:
Adrià Arrufat 2024-03-13 22:19:30 +09:00 committed by Luuk de Gram
parent b9cca3b63d
commit 17bad9f886

View File

@ -17,8 +17,8 @@ comptime {
if (builtin.os.tag == .emscripten) {
if (builtin.mode == .Debug or builtin.mode == .ReleaseSafe) {
// Emscripten does not provide these symbols, so we must export our own
@export(__stack_chk_guard, .{ .name = "__stack_chk_guard", .linkage = .Strong });
@export(__stack_chk_fail, .{ .name = "__stack_chk_fail", .linkage = .Strong });
@export(__stack_chk_guard, .{ .name = "__stack_chk_guard", .linkage = .strong });
@export(__stack_chk_fail, .{ .name = "__stack_chk_fail", .linkage = .strong });
}
}
}