From 156b968ad85d6b2f6146d66f1a3a3c48b34193da Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 24 May 2021 10:41:59 -0700 Subject: stage2: remove dead code; rename crtbegin_dir to gcc_dir --- src/Compilation.zig | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/Compilation.zig') diff --git a/src/Compilation.zig b/src/Compilation.zig index b3a01b3c9d..023a54ca8d 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -3286,13 +3286,6 @@ pub fn get_libc_crt_file(comp: *Compilation, arena: *Allocator, basename: []cons return full_path; } -pub fn get_libc_crtbegin_file(comp: *Compilation, arena: *Allocator, basename: []const u8) ![]const u8 { - const lci = comp.bin_file.options.libc_installation orelse return error.LibCInstallationNotAvailable; - const crtbegin_dir_path = lci.crtbegin_dir orelse return error.LibCInstallationMissingCRTDir; - const full_path = try std.fs.path.join(arena, &[_][]const u8{ crtbegin_dir_path, basename }); - return full_path; -} - fn addBuildingGLibCJobs(comp: *Compilation) !void { try comp.work_queue.write(&[_]Job{ .{ .glibc_crt_file = .crti_o }, -- cgit v1.2.3