diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-08-12 10:43:24 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-08-12 10:48:54 -0700 |
| commit | fc55814faa8970cc373b7bbf8479c3bc3934fb44 (patch) | |
| tree | 122369476b5b300a6dd2010f519bf734943c96b0 /lib/std/special/compiler_rt.zig | |
| parent | 6eecc4af99e2affc44d153e5f127200f2adf4642 (diff) | |
| download | zig-fc55814faa8970cc373b7bbf8479c3bc3934fb44.tar.gz zig-fc55814faa8970cc373b7bbf8479c3bc3934fb44.zip | |
compiler-rt: do not depend on `usingnamespace`
The idea is to depend on this language feature as little as possible
with the hopes that it can be adjusted to be less of an anti-pattern.
This also helps self-hosted, which does not yet implement
`usingnamespace`, get closer to being able to build compiler-rt.
Diffstat (limited to 'lib/std/special/compiler_rt.zig')
| -rw-r--r-- | lib/std/special/compiler_rt.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/special/compiler_rt.zig b/lib/std/special/compiler_rt.zig index dcbdebec73..69e099ae57 100644 --- a/lib/std/special/compiler_rt.zig +++ b/lib/std/special/compiler_rt.zig @@ -595,9 +595,9 @@ comptime { @export(__muloti4, .{ .name = "__muloti4", .linkage = linkage }); const __mulodi4 = @import("compiler_rt/mulodi4.zig").__mulodi4; @export(__mulodi4, .{ .name = "__mulodi4", .linkage = linkage }); -} -pub usingnamespace @import("compiler_rt/atomics.zig"); + _ = @import("compiler_rt/atomics.zig"); +} // Avoid dragging in the runtime safety mechanisms into this .o file, // unless we're trying to test this file. |
