mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
tools/update_glibc: exempt some more files
This commit is contained in:
parent
f458c13494
commit
87b3e23172
@ -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}", .{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user