mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
backend=auto (now the default if backend is omitted) means to let the compiler pick whatever backend it wants as the default. This is important for platforms where we don't yet have a self-hosted backend, such as loongarch64. Also purge a bunch of redundant target=native.
12 lines
295 B
Zig
12 lines
295 B
Zig
fn myFn(_: usize) void {
|
|
return;
|
|
}
|
|
pub export fn entry() void {
|
|
@call(.always_tail, myFn, .{0});
|
|
}
|
|
|
|
// error
|
|
// backend=llvm
|
|
//
|
|
// :5:5: error: unable to perform tail call: type of function being called 'fn (usize) void' does not match type of calling function 'fn () callconv(.c) void'
|