compiler: Rename misleading libcNeedsLibUnwind() function.

It's about libc++, not libc.
This commit is contained in:
Alex Rønne Petersen 2025-05-03 06:31:12 +02:00
parent c0ec264f75
commit ae38575b42
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -313,7 +313,7 @@ pub fn resolve(options: Options) ResolveError!Config {
};
const link_libunwind = b: {
if (link_libcpp and target_util.libcNeedsLibUnwind(target)) {
if (link_libcpp and target_util.libCxxNeedsLibUnwind(target)) {
if (options.link_libunwind == false) return error.LibCppRequiresLibUnwind;
break :b true;
}

View File

@ -23,7 +23,7 @@ pub fn osRequiresLibC(target: std.Target) bool {
return target.os.requiresLibC();
}
pub fn libcNeedsLibUnwind(target: std.Target) bool {
pub fn libCxxNeedsLibUnwind(target: std.Target) bool {
return switch (target.os.tag) {
.macos,
.ios,