aboutsummaryrefslogtreecommitdiff
path: root/src-self-hosted/link.zig
diff options
context:
space:
mode:
authorVexu <15308111+Vexu@users.noreply.github.com>2019-11-06 19:38:59 +0200
committerVexu <15308111+Vexu@users.noreply.github.com>2019-11-07 10:30:11 +0200
commitcb20093614efecb341f8b3260bf9f91bb10556e6 (patch)
treeacbc8f6fae9e00bf79223162d5c5ca747540456c /src-self-hosted/link.zig
parentb06e5b8c6862ce77dab314c7817709f0832799df (diff)
downloadzig-cb20093614efecb341f8b3260bf9f91bb10556e6.tar.gz
zig-cb20093614efecb341f8b3260bf9f91bb10556e6.zip
self hosted compiler: remove await async pattern
Diffstat (limited to 'src-self-hosted/link.zig')
-rw-r--r--src-self-hosted/link.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src-self-hosted/link.zig b/src-self-hosted/link.zig
index 1f5f07eff0..b1d8307140 100644
--- a/src-self-hosted/link.zig
+++ b/src-self-hosted/link.zig
@@ -61,7 +61,7 @@ pub async fn link(comp: *Compilation) !void {
ctx.libc = ctx.comp.override_libc orelse blk: {
switch (comp.target) {
Target.Native => {
- break :blk (await (async comp.zig_compiler.getNativeLibC() catch unreachable)) catch return error.LibCRequiredButNotProvidedOrFound;
+ break :blk comp.zig_compiler.getNativeLibC() catch return error.LibCRequiredButNotProvidedOrFound;
},
else => return error.LibCRequiredButNotProvidedOrFound,
}
@@ -83,7 +83,7 @@ pub async fn link(comp: *Compilation) !void {
{
// LLD is not thread-safe, so we grab a global lock.
- const held = await (async comp.zig_compiler.lld_lock.acquire() catch unreachable);
+ const held = comp.zig_compiler.lld_lock.acquire();
defer held.release();
// Not evented I/O. LLD does its own multithreading internally.