aboutsummaryrefslogtreecommitdiff
path: root/src/link/C.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-08-19 21:49:29 -0700
committerGitHub <noreply@github.com>2024-08-19 21:49:29 -0700
commitdffc8c44f9a01aa05ea364ffdc71509d15bc2601 (patch)
treeb9b610ac10bb537b8b0dfba500f6599c5e4b2e15 /src/link/C.zig
parent7071d1b3c2ed908bb8f1170673b50568ed56da7b (diff)
parent80999391d9b0db0303f59942cb52542a6e4da331 (diff)
downloadzig-dffc8c44f9a01aa05ea364ffdc71509d15bc2601.tar.gz
zig-dffc8c44f9a01aa05ea364ffdc71509d15bc2601.zip
Merge pull request #21115 from Snektron/build-system-asm
compilation and build system fixes
Diffstat (limited to 'src/link/C.zig')
-rw-r--r--src/link/C.zig7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/link/C.zig b/src/link/C.zig
index e7c8f6a7b0..a704175865 100644
--- a/src/link/C.zig
+++ b/src/link/C.zig
@@ -3,6 +3,7 @@ const mem = std.mem;
const assert = std.debug.assert;
const Allocator = std.mem.Allocator;
const fs = std.fs;
+const Path = std.Build.Cache.Path;
const C = @This();
const build_options = @import("build_options");
@@ -104,7 +105,7 @@ pub fn addString(this: *C, s: []const u8) Allocator.Error!String {
pub fn open(
arena: Allocator,
comp: *Compilation,
- emit: Compilation.Emit,
+ emit: Path,
options: link.File.OpenOptions,
) !*C {
return createEmpty(arena, comp, emit, options);
@@ -113,7 +114,7 @@ pub fn open(
pub fn createEmpty(
arena: Allocator,
comp: *Compilation,
- emit: Compilation.Emit,
+ emit: Path,
options: link.File.OpenOptions,
) !*C {
const target = comp.root_mod.resolved_target.result;
@@ -127,7 +128,7 @@ pub fn createEmpty(
assert(!use_lld);
assert(!use_llvm);
- const file = try emit.directory.handle.createFile(emit.sub_path, .{
+ const file = try emit.root_dir.handle.createFile(emit.sub_path, .{
// Truncation is done on `flush`.
.truncate = false,
});