aboutsummaryrefslogtreecommitdiff
path: root/fuzzers
diff options
context:
space:
mode:
authorDirk Pranke <dpranke@google.com>2020-11-04 23:56:53 +0000
committerCopybara-Service <copybara-worker@google.com>2021-07-25 21:09:11 -0700
commita55f5030a10a20afe99104029e154d45c8be9f98 (patch)
tree5a794af14ea7fce125b472807cb01ed764f7c23a /fuzzers
parentefd8836368609e094949b13dd9f980b17a38ac0d (diff)
downloadzucchini-a55f5030a10a20afe99104029e154d45c8be9f98.tar.gz
Change actions to python2_actions as needed.
As a prelude to starting to move the build fully over to Python 3, this CL changes all of the GN `action` and `action_foreach` targets that appear to require Python 2 over to `python2_action` and `python2_action_foreach`. This CL by itself should produce no functional change since we'll still be using Python 2 by default, and the new templates are passthroughs in that config. To start using Python3, you can run `gn gen --script-executable=python3 //out/Default` on Unix; on Python3 you need to point to an actual python3.exe and not the python3.bat wrapper in depot_tools; once we can roll GN forward to a version that contains https://gn-review.googlesource.com/c/gn/+/10560 (which will hopefully happen in the next day or two), that won't be necessary. The Fuchsia build will not work until http://fxrev.dev/446479 lands and is rolled in. No-Presubmit: true Bug: 1112471 AX-Relnotes: n/a Change-Id: I891155502e0940a8075cf26d675f54b803d91242 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2510878 Reviewed-by: Scott Violet <sky@chromium.org> Reviewed-by: Bruce Dawson <brucedawson@chromium.org> Reviewed-by: Mark Mentovai <mark@chromium.org> Reviewed-by: Andrew Grieve <agrieve@chromium.org> Commit-Queue: Dirk Pranke <dpranke@google.com> Cr-Commit-Position: refs/heads/master@{#824216} NOKEYCHECK=True GitOrigin-RevId: ca35ab2022b017562b9ad3d12fea3f149d18cf87
Diffstat (limited to 'fuzzers')
-rw-r--r--fuzzers/BUILD.gn7
1 files changed, 5 insertions, 2 deletions
diff --git a/fuzzers/BUILD.gn b/fuzzers/BUILD.gn
index 90c436e..613ac99 100644
--- a/fuzzers/BUILD.gn
+++ b/fuzzers/BUILD.gn
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/python.gni")
import("//testing/libfuzzer/fuzzer_test.gni")
import("//third_party/protobuf/proto_library.gni")
@@ -71,7 +72,8 @@ proto_library("zucchini_file_pair_proto") {
# Disabled on Windows due to crbug/844826.
if (current_toolchain == host_toolchain && !is_win) {
# Raw Apply Fuzzer Seed:
- action("zucchini_raw_apply_seed") {
+ # TODO(crbug.com/1112471): Get this to run cleanly under Python 3.
+ python2_action("zucchini_raw_apply_seed") {
script = "generate_fuzzer_data.py"
args = [
@@ -107,7 +109,8 @@ if (current_toolchain == host_toolchain && !is_win) {
}
# ZTF Apply Fuzzer Seed:
- action("zucchini_ztf_apply_seed") {
+ # TODO(crbug.com/1112471): Get this to run cleanly under Python 3.
+ python2_action("zucchini_ztf_apply_seed") {
script = "generate_fuzzer_data.py"
# *.ztf files are expected to be valid ZTF format.