mirror of
https://github.com/ziglang/zig.git
synced 2026-01-13 10:55:11 +00:00
Don't define valgrind_support on macOS (#9612)
Unfortunately, Valgrind for macOS has been broken for years, and the Homebrew formula is only for Linux.
This commit is contained in:
parent
bb38931c71
commit
9e3ec98937
@ -919,7 +919,7 @@ bool target_has_valgrind_support(const ZigTarget *target) {
|
||||
case ZigLLVM_UnknownArch:
|
||||
zig_unreachable();
|
||||
case ZigLLVM_x86_64:
|
||||
return (target->os == OsLinux || target_os_is_darwin(target->os) || target->os == OsSolaris ||
|
||||
return (target->os == OsLinux || target->os == OsSolaris ||
|
||||
(target->os == OsWindows && target->abi != ZigLLVM_MSVC));
|
||||
default:
|
||||
return false;
|
||||
|
||||
@ -163,7 +163,7 @@ pub fn isSingleThreaded(target: std.Target) bool {
|
||||
pub fn hasValgrindSupport(target: std.Target) bool {
|
||||
switch (target.cpu.arch) {
|
||||
.x86_64 => {
|
||||
return target.os.tag == .linux or target.isDarwin() or target.os.tag == .solaris or
|
||||
return target.os.tag == .linux or target.os.tag == .solaris or
|
||||
(target.os.tag == .windows and target.abi != .msvc);
|
||||
},
|
||||
else => return false,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user