Files
node/deps/v8/test/benchmarks/cpp/BUILD.gn
T
Antoine du Hamel 7c2eaad296 deps: V8: cherry-pick 785a2ea88a90
Original commit message:

    [tracing] do not define legacy tracing classes when using Perfetto

    Otherwise the Windows build of Node.js fails with `undefined symbol`
    errors due to the missing destructor.

    Change-Id: Id0841aed2f0a8f0cfe8889c39150552e31ee5f96
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8580049
    Reviewed-by: Yang Guo <yangguo@chromium.org>
    Reviewed-by: Chengzhong Wu <cwu631@bloomberg.net>
    Commit-Queue: Chengzhong Wu <cwu631@bloomberg.net>
    Cr-Commit-Position: refs/heads/main@{#110947}

Refs: https://github.com/v8/v8/commit/785a2ea88a903317d72fe40e3fff660267865a69
PR-URL: https://github.com/nodejs/node/pull/66876
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
2026-10-23 10:06:18 +02:00

92 lines
1.7 KiB
Plaintext

# Copyright 2020 The V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("../../../gni/v8.gni")
group("gn_all") {
testonly = true
deps = []
if (v8_enable_google_benchmark) {
deps += [
":bindings_benchmark",
":dtoa_benchmark",
":empty_benchmark",
":fast_api_benchmark",
"cppgc:gn_all",
]
}
}
if (v8_enable_google_benchmark) {
v8_executable("empty_benchmark") {
testonly = true
configs = []
sources = [ "empty.cc" ]
deps = [
"//:v8_libbase",
"//third_party/google_benchmark_chrome:benchmark_main",
"//third_party/google_benchmark_chrome:google_benchmark",
]
}
v8_executable("dtoa_benchmark") {
testonly = true
configs = []
sources = [ "dtoa.cc" ]
deps = [
"//:v8_libbase",
"//third_party/google_benchmark_chrome:benchmark_main",
"//third_party/google_benchmark_chrome:google_benchmark",
]
}
v8_executable("bindings_benchmark") {
testonly = true
configs = []
sources = [
"benchmark-main.cc",
"benchmark-utils.cc",
"benchmark-utils.h",
"bindings.cc",
]
deps = [
"//:v8",
"//:v8_internal_headers",
"//:v8_libbase",
"//:v8_tracing",
"//third_party/google_benchmark_chrome:google_benchmark",
]
}
v8_executable("fast_api_benchmark") {
testonly = true
configs = []
sources = [
"benchmark-main.cc",
"benchmark-utils.cc",
"benchmark-utils.h",
"fast-api.cc",
]
deps = [
"//:v8",
"//:v8_libbase",
"//third_party/google_benchmark_chrome:google_benchmark",
]
}
}