Skip to content

Commit 2bbaf95

Browse files
committed
Merge pull request #11828 from devins2518/arm-atomics
compiler_rt: aarch64 outline atomics
1 parent a3232c6 commit 2bbaf95

File tree

3 files changed

+2572
-0
lines changed

3 files changed

+2572
-0
lines changed

lib/compiler_rt.zig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1+
const builtin = @import("builtin");
2+
13
pub const panic = @import("compiler_rt/common.zig").panic;
24

35
comptime {
46
_ = @import("compiler_rt/atomics.zig");
57

8+
// macOS has these functions inside libSystem.
9+
if (builtin.cpu.arch.isAARCH64() and !builtin.os.tag.isDarwin()) {
10+
_ = @import("compiler_rt/aarch64_outline_atomics.zig");
11+
}
12+
613
_ = @import("compiler_rt/addf3.zig");
714
_ = @import("compiler_rt/addhf3.zig");
815
_ = @import("compiler_rt/addsf3.zig");

0 commit comments

Comments
 (0)