authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-06-13 23:51:25+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-06-17 16:38:59-07:00
logf572e5a0c4e4ff34566533131b3423688a439863
tree7870f45e85cb8d72ed9458115a1a95e937ae8700
parent57c530155f0c7754386c50fb9bc128198cab705c

compiler_rt: shuffle order of imports to mark relevant symbols for export


1 files changed, 14 insertions(+), 12 deletions(-)

lib/compiler_rt.zig+14-12
...@@ -2,8 +2,21 @@ const builtin = @import("builtin");...@@ -2,8 +2,21 @@ const builtin = @import("builtin");
2pub const panic = @import("compiler_rt/common.zig").panic;2pub const panic = @import("compiler_rt/common.zig").panic;
33
4comptime {4comptime {
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?
6 _ = @import("compiler_rt/atomics.zig");8 _ = @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");
7 _ = @import("compiler_rt/sin.zig");20 _ = @import("compiler_rt/sin.zig");
8 _ = @import("compiler_rt/cos.zig");21 _ = @import("compiler_rt/cos.zig");
9 _ = @import("compiler_rt/sincos.zig");22 _ = @import("compiler_rt/sincos.zig");
...@@ -23,9 +36,6 @@ comptime {...@@ -23,9 +36,6 @@ comptime {
23 _ = @import("compiler_rt/sqrt.zig");36 _ = @import("compiler_rt/sqrt.zig");
24 _ = @import("compiler_rt/tan.zig");37 _ = @import("compiler_rt/tan.zig");
25 _ = @import("compiler_rt/trunc.zig");38 _ = @import("compiler_rt/trunc.zig");
26 _ = @import("compiler_rt/extendXfYf2.zig");
27 _ = @import("compiler_rt/extend_f80.zig");
28 _ = @import("compiler_rt/compareXf2.zig");
29 _ = @import("compiler_rt/stack_probe.zig");39 _ = @import("compiler_rt/stack_probe.zig");
30 _ = @import("compiler_rt/divti3.zig");40 _ = @import("compiler_rt/divti3.zig");
31 _ = @import("compiler_rt/modti3.zig");41 _ = @import("compiler_rt/modti3.zig");
...@@ -33,14 +43,6 @@ comptime {...@@ -33,14 +43,6 @@ comptime {
33 _ = @import("compiler_rt/udivti3.zig");43 _ = @import("compiler_rt/udivti3.zig");
34 _ = @import("compiler_rt/udivmodti4.zig");44 _ = @import("compiler_rt/udivmodti4.zig");
35 _ = @import("compiler_rt/umodti3.zig");45 _ = @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");
44 _ = @import("compiler_rt/floatXiYf.zig");46 _ = @import("compiler_rt/floatXiYf.zig");
45 _ = @import("compiler_rt/fixXfYi.zig");47 _ = @import("compiler_rt/fixXfYi.zig");
46 _ = @import("compiler_rt/count0bits.zig");48 _ = @import("compiler_rt/count0bits.zig");