diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-10-11 19:53:51 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-10-13 17:44:27 -0700 |
| commit | 87b3e2317294186ba6625592eb55760fd99fe211 (patch) | |
| tree | 4dab28ef8bcfa9111ac30e88113d137773060a6d /tools | |
| parent | f458c13494a380721662ad74539f9fc74eea8382 (diff) | |
| download | zig-87b3e2317294186ba6625592eb55760fd99fe211.tar.gz zig-87b3e2317294186ba6625592eb55760fd99fe211.zip | |
tools/update_glibc: exempt some more files
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/update_glibc.zig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/update_glibc.zig b/tools/update_glibc.zig index dcc797f59f..cf43736c8a 100644 --- a/tools/update_glibc.zig +++ b/tools/update_glibc.zig @@ -30,6 +30,12 @@ const exempt_files = [_][]const u8{ "sysdeps/pthread/pthread_atfork.c", }; +const exempt_extensions = [_][]const u8{ + // These are the start files we use when targeting glibc <= 2.33. + "-2.33.S", + "-2.33.c", +}; + pub fn main() !void { var arena_instance = std.heap.ArenaAllocator.init(std.heap.page_allocator); defer arena_instance.deinit(); @@ -62,6 +68,9 @@ pub fn main() !void { for (exempt_files) |p| { if (mem.eql(u8, entry.path, p)) continue :walk; } + for (exempt_extensions) |ext| { + if (mem.endsWith(u8, entry.path, ext)) continue :walk; + } glibc_src_dir.copyFile(entry.path, dest_dir.dir, entry.path, .{}) catch |err| { log.warn("unable to copy '{s}/{s}' to '{s}/{s}': {s}", .{ |
