mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
compiler-rt: don't forget to export these functions
This commit is contained in:
parent
ed69821f5b
commit
e03cbb117e
1 changed files with 7 additions and 0 deletions
|
|
@ -88,6 +88,13 @@ fn __atomic_compare_exchange(
|
|||
return 0;
|
||||
}
|
||||
|
||||
comptime {
|
||||
@export(__atomic_load, .{ .name = "__atomic_load", .linkage = linkage });
|
||||
@export(__atomic_store, .{ .name = "__atomic_store", .linkage = linkage });
|
||||
@export(__atomic_exchange, .{ .name = "__atomic_exchange", .linkage = linkage });
|
||||
@export(__atomic_compare_exchange, .{ .name = "__atomic_compare_exchange", .linkage = linkage });
|
||||
}
|
||||
|
||||
// Specialized versions of the GCC atomic builtin functions.
|
||||
// LLVM emits those iff the object size is known and the pointers are correctly
|
||||
// aligned.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue