handle _fltused in compiler_rt
so we don't have to do an entire compilation unit for just this silly symbol
This commit is contained in:
@@ -38,8 +38,6 @@ comptime {
|
||||
@export(&strncpy, .{ .name = "strncpy", .linkage = .strong });
|
||||
@export(&strcat, .{ .name = "strcat", .linkage = .strong });
|
||||
@export(&strncat, .{ .name = "strncat", .linkage = .strong });
|
||||
} else if (is_msvc) {
|
||||
@export(&_fltused, .{ .name = "_fltused", .linkage = .strong });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,8 +60,6 @@ fn wasm_start() callconv(.C) void {
|
||||
_ = main(0, undefined);
|
||||
}
|
||||
|
||||
var _fltused: c_int = 1;
|
||||
|
||||
fn strcpy(dest: [*:0]u8, src: [*:0]const u8) callconv(.C) [*:0]u8 {
|
||||
var i: usize = 0;
|
||||
while (src[i] != 0) : (i += 1) {
|
||||
|
||||
Reference in New Issue
Block a user