mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
build a builtins .obj file for windows cross-compilation
This commit is contained in:
parent
d9db0b7096
commit
42ef5d1977
4 changed files with 21 additions and 1 deletions
|
@ -42,6 +42,7 @@ pub fn build(b: *Builder) void {
|
|||
|
||||
// Generate Object Files
|
||||
generateObjectFile(b, mode, host_target, main_path, "object", "builtins-host");
|
||||
generateObjectFile(b, mode, windows64_target, main_path, "windows-x86_64-object", "builtins-windows-x86_64");
|
||||
generateObjectFile(b, mode, wasm32_target, main_path, "wasm32-object", "builtins-wasm32");
|
||||
|
||||
removeInstallSteps(b);
|
||||
|
|
|
@ -253,7 +253,9 @@ test "" {
|
|||
|
||||
// Export it as weak incase it is already linked in by something else.
|
||||
comptime {
|
||||
@export(__muloti4, .{ .name = "__muloti4", .linkage = .Weak });
|
||||
if (builtin.target.os.tag != .windows) {
|
||||
@export(__muloti4, .{ .name = "__muloti4", .linkage = .Weak });
|
||||
}
|
||||
}
|
||||
fn __muloti4(a: i128, b: i128, overflow: *c_int) callconv(.C) i128 {
|
||||
// @setRuntimeSafety(std.builtin.is_test);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue