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 53c21d09b7
commit 438bc0e602
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -1009,6 +1009,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});
@ -1045,6 +1049,7 @@ mod test {
"-target",
"x86_64-windows-gnu",
"--strip",
"-rdynamic",
"-OReleaseFast",
])
.output()