1828f8eb8e
the optimizer was deleting compiler_rt symbols, so I changed the linkage type from LinkOnce to Weak also changed LinkOnce to mean linkonce_odr in llvm and Weak to mean weak_odr in llvm. See #563
15 lines
367 B
Zig
15 lines
367 B
Zig
const fixuint = @import("fixuint.zig").fixuint;
|
|
const builtin = @import("builtin");
|
|
const linkage = @import("index.zig").linkage;
|
|
|
|
export fn __fixunsdfdi(a: f64) -> u64 {
|
|
@setDebugSafety(this, builtin.is_test);
|
|
@setGlobalLinkage(__fixunsdfdi, linkage);
|
|
return fixuint(f64, u64, a);
|
|
}
|
|
|
|
test "import fixunsdfdi" {
|
|
_ = @import("fixunsdfdi_test.zig");
|
|
}
|
|
|