Skip to content

Commit ae38575

Browse files
committed
compiler: Rename misleading libcNeedsLibUnwind() function.
It's about libc++, not libc.
1 parent c0ec264 commit ae38575

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Compilation/Config.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ pub fn resolve(options: Options) ResolveError!Config {
313313
};
314314

315315
const link_libunwind = b: {
316-
if (link_libcpp and target_util.libcNeedsLibUnwind(target)) {
316+
if (link_libcpp and target_util.libCxxNeedsLibUnwind(target)) {
317317
if (options.link_libunwind == false) return error.LibCppRequiresLibUnwind;
318318
break :b true;
319319
}

src/target.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub fn osRequiresLibC(target: std.Target) bool {
2323
return target.os.requiresLibC();
2424
}
2525

26-
pub fn libcNeedsLibUnwind(target: std.Target) bool {
26+
pub fn libCxxNeedsLibUnwind(target: std.Target) bool {
2727
return switch (target.os.tag) {
2828
.macos,
2929
.ios,

0 commit comments

Comments
 (0)