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
14 lines
406 B
Zig
14 lines
406 B
Zig
const udivmod = @import("udivmod.zig").udivmod;
|
|
const builtin = @import("builtin");
|
|
const linkage = @import("index.zig").linkage;
|
|
|
|
export fn __udivmodti4(a: u128, b: u128, maybe_rem: ?&u128) -> u128 {
|
|
@setDebugSafety(this, builtin.is_test);
|
|
@setGlobalLinkage(__udivmodti4, linkage);
|
|
return udivmod(u128, a, b, maybe_rem);
|
|
}
|
|
|
|
test "import udivmodti4" {
|
|
_ = @import("udivmodti4_test.zig");
|
|
}
|