aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/stage1/target.cpp2
-rw-r--r--src/target.zig2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/stage1/target.cpp b/src/stage1/target.cpp
index 6594eb57d5..8415b1934e 100644
--- a/src/stage1/target.cpp
+++ b/src/stage1/target.cpp
@@ -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;
diff --git a/src/target.zig b/src/target.zig
index 06483d68ff..25a133f03b 100644
--- a/src/target.zig
+++ b/src/target.zig
@@ -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,