v8/tools/BUILD.gn
Camillo Bruni 4db43bfa2f [tools] Improve gcmole part I: command line
- Convert gcmole to python3-ish code
  - use local Path implementation for future full migration
- Use optparse and explicit arguments for gcmole
  - Add explicit directories flags
  - Use backwards compatible env vars as fallbacks
- Add gn target v8_gcmole_files to avoid issues with missing or
  incompatible generated files

Drive-by-fixes for running gcmole without ignored files:
- Disable gcmole in Isolate::UnwindAndFindHandle
- Partially disable gcmole in V8HeapExplorer::AddEntry

Bug: v8:10009
Change-Id: I5b4d1c6554db300190226361b6c518419109ff3d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3497320
Reviewed-by: Liviu Rau <liviurau@chromium.org>
Reviewed-by: Maya Lekova <mslekova@chromium.org>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#79348}
2022-03-03 15:01:15 +00:00

66 lines
1.5 KiB
Plaintext

# Copyright 2016 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("//build/config/sanitizers/sanitizers.gni")
import("../gni/v8.gni")
group("gn_all") {
testonly = true
data_deps = [
":v8_check_static_initializers",
"debug_helper:v8_debug_helper",
"gcmole:v8_gcmole_files",
"jsfunfuzz:v8_jsfunfuzz",
]
if (is_win) {
data_deps += [ "v8windbg" ]
}
}
group("v8_check_static_initializers") {
data_deps = [ "..:d8" ]
data = [ "check-static-initializers.sh" ]
}
group("v8_android_test_runner_deps") {
testonly = true
if (is_android && !build_with_chromium) {
data_deps = [ "//build/android:test_runner_py" ]
data = [
# This is used by android.py, but not included by test_runner_py above.
"//third_party/catapult/devil/devil/android/perf/",
]
}
}
group("v8_testrunner") {
testonly = true
data_deps = [
":v8_android_test_runner_deps",
"..:v8_dump_build_config",
"..:v8_python_base",
]
data = [
# Also add the num-fuzzer wrapper script in order to be able to run the
# num-fuzzer on all existing isolated V8 test suites.
"predictable_wrapper.py",
"run-num-fuzzer.py",
"run-tests.py",
"testrunner/",
]
if (v8_code_coverage && sanitizer_coverage_flags == "bb,trace-pc-guard") {
data += [
"sanitizers/sancov_merger.py",
"../third_party/llvm/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py",
]
}
}