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