use the -rdynamic flag to have zig produce an export section for the host

This commit is contained in:
Folkert 2022-09-21 15:26:03 +02:00
parent 2d2fbfd987
commit fcc17f6b68
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -986,6 +986,10 @@ mod test {
extern fn roc_magic1() callconv(.C) u64;
extern fn roc_magic2() callconv(.C) u8;
pub export fn roc_alloc() u64 {
return 123456;
}
pub fn main() !void {
const stdout = std.io.getStdOut().writer();
try stdout.print("Hello, {} {} {} {}!\n", .{roc_magic1(), roc_magic2(), roc_one, roc_three});
@ -1059,6 +1063,7 @@ mod test {
"-target",
"x86_64-windows-gnu",
"--strip",
"-rdynamic",
"-OReleaseFast",
])
.output()