Skip to content

Commit b294ae7

Browse files
kubkonandrewrk
authored andcommitted
compiler_rt: shuffle order of imports to mark relevant symbols for export
1 parent 989c501 commit b294ae7

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

lib/compiler_rt.zig

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,21 @@ const builtin = @import("builtin");
22
pub const panic = @import("compiler_rt/common.zig").panic;
33

44
comptime {
5-
// These files do their own comptime exporting logic.
5+
// TODO moving these around makes or breaks compilation of zig1.o for some reason
6+
// Perhaps, until we switch to stage2, exports should be duplicated between this file
7+
// and files included as a standalone units?
68
_ = @import("compiler_rt/atomics.zig");
9+
_ = @import("compiler_rt/addXf3.zig");
10+
_ = @import("compiler_rt/mulXf3.zig");
11+
_ = @import("compiler_rt/compareXf2.zig");
12+
_ = @import("compiler_rt/extendXfYf2.zig");
13+
_ = @import("compiler_rt/extend_f80.zig");
14+
_ = @import("compiler_rt/truncXfYf2.zig");
15+
_ = @import("compiler_rt/trunc_f80.zig");
16+
_ = @import("compiler_rt/divtf3.zig");
17+
_ = @import("compiler_rt/divsf3.zig");
18+
_ = @import("compiler_rt/divdf3.zig");
19+
_ = @import("compiler_rt/divxf3.zig");
720
_ = @import("compiler_rt/sin.zig");
821
_ = @import("compiler_rt/cos.zig");
922
_ = @import("compiler_rt/sincos.zig");
@@ -23,24 +36,13 @@ comptime {
2336
_ = @import("compiler_rt/sqrt.zig");
2437
_ = @import("compiler_rt/tan.zig");
2538
_ = @import("compiler_rt/trunc.zig");
26-
_ = @import("compiler_rt/extendXfYf2.zig");
27-
_ = @import("compiler_rt/extend_f80.zig");
28-
_ = @import("compiler_rt/compareXf2.zig");
2939
_ = @import("compiler_rt/stack_probe.zig");
3040
_ = @import("compiler_rt/divti3.zig");
3141
_ = @import("compiler_rt/modti3.zig");
3242
_ = @import("compiler_rt/multi3.zig");
3343
_ = @import("compiler_rt/udivti3.zig");
3444
_ = @import("compiler_rt/udivmodti4.zig");
3545
_ = @import("compiler_rt/umodti3.zig");
36-
_ = @import("compiler_rt/truncXfYf2.zig");
37-
_ = @import("compiler_rt/trunc_f80.zig");
38-
_ = @import("compiler_rt/addXf3.zig");
39-
_ = @import("compiler_rt/mulXf3.zig");
40-
_ = @import("compiler_rt/divsf3.zig");
41-
_ = @import("compiler_rt/divdf3.zig");
42-
_ = @import("compiler_rt/divxf3.zig");
43-
_ = @import("compiler_rt/divtf3.zig");
4446
_ = @import("compiler_rt/floatXiYf.zig");
4547
_ = @import("compiler_rt/fixXfYi.zig");
4648
_ = @import("compiler_rt/count0bits.zig");

0 commit comments

Comments
 (0)