Commit f0919fe6 authored by Nico Weber's avatar Nico Weber Committed by Commit Bot

[diagnostics] Fix os macros for mac as well

Bug: chromium:1196278
Change-Id: If80b1264f537e3828867831ac4d4dfc005a1ae8d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2845243
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: 's avatarDan Elphick <delphick@chromium.org>
Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#74149}
parent 87646f76
......@@ -4830,7 +4830,7 @@ v8_component("v8_libplatform") {
} else if (is_win) {
sources -= [ "src/libplatform/tracing/recorder-default.cc" ]
sources += [ "src/libplatform/tracing/recorder-win.cc" ]
} else if (target_os == "mac") {
} else if (is_mac) {
sources -= [ "src/libplatform/tracing/recorder-default.cc" ]
sources += [ "src/libplatform/tracing/recorder-mac.cc" ]
}
......
......@@ -9,7 +9,7 @@
#include "include/libplatform/v8-tracing.h"
#ifdef V8_TARGET_OS_MACOSX
#ifdef V8_OS_MACOSX
#if !defined(V8_ENABLE_SYSTEM_INSTRUMENTATION)
#error V8_ENABLE_SYSTEM_INSTRUMENTATION is not defined
#endif
......@@ -49,7 +49,7 @@ class V8_PLATFORM_EXPORT Recorder {
void AddEvent(TraceObject* trace_event);
private:
#ifdef V8_TARGET_OS_MACOSX
#ifdef V8_OS_MACOSX
os_log_t v8Provider;
#endif
};
......@@ -58,7 +58,7 @@ class V8_PLATFORM_EXPORT Recorder {
} // namespace platform
} // namespace v8
#ifdef V8_TARGET_OS_MACOSX
#ifdef V8_OS_MACOSX
#pragma clang diagnostic pop
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment