mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 21:38:33 +00:00
compiler: Rename misleading libcNeedsLibUnwind() function.
It's about libc++, not libc.
This commit is contained in:
parent
c0ec264f75
commit
ae38575b42
@ -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;
|
||||
}
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user