Commit 41fb9f97 authored by Sara Tang's avatar Sara Tang Committed by Commit Bot

[diagnostics] Fix macos system instrumentation for ios-sim

Original CL: https://chromium-review.googlesource.com/c/v8/v8/+/2807157

Bug: v8:11043
Change-Id: I49d29323bf3ae6ede7e48e63645f4ee0a750c83e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2818573Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
Commit-Queue: Sara Tang <sartang@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#73931}
parent 6165fef8
......@@ -4798,7 +4798,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 (is_mac) {
} else if (target_os == "mac") {
sources -= [ "src/libplatform/tracing/recorder-default.cc" ]
sources += [ "src/libplatform/tracing/recorder-mac.cc" ]
}
......
......@@ -4070,11 +4070,11 @@ bool Shell::SetOptions(int argc, char* argv[]) {
options.fuzzy_module_file_extensions = true;
argv[i] = nullptr;
#if defined(V8_ENABLE_SYSTEM_INSTRUMENTATION)
#if defined(V8_OS_WIN) || defined(V8_OS_MACOSX)
#if defined(V8_TARGET_OS_WIN) || defined(V8_TARGET_OS_MACOSX)
} else if (strcmp(argv[i], "--enable-system-instrumentation") == 0) {
options.enable_system_instrumentation = true;
options.trace_enabled = true;
#if defined(V8_OS_WIN)
#if defined(V8_TARGET_OS_WIN)
// Guard this bc the flag has a lot of overhead and is not currently used
// by macos
i::FLAG_interpreted_frames_native_stack = true;
......
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