From 3f72b3cab7d399ee0539b3fb139c4bde91c39bbc Mon Sep 17 00:00:00 2001 From: Christian Blichmann Date: Fri, 1 Apr 2022 01:45:23 -0700 Subject: [PATCH] bazel: Set generator version to default v1 No change in behavior. PiperOrigin-RevId: 438766481 Change-Id: Iaf52d32856007fb83ee0032d4d5097482f45f47d --- sandboxed_api/examples/hello_sapi/BUILD.bazel | 1 + sandboxed_api/examples/stringop/BUILD.bazel | 1 + sandboxed_api/examples/sum/BUILD.bazel | 1 + sandboxed_api/examples/zlib/BUILD.bazel | 1 + sandboxed_api/tools/generator2/BUILD.bazel | 1 + 5 files changed, 5 insertions(+) diff --git a/sandboxed_api/examples/hello_sapi/BUILD.bazel b/sandboxed_api/examples/hello_sapi/BUILD.bazel index 943e636..20358ad 100644 --- a/sandboxed_api/examples/hello_sapi/BUILD.bazel +++ b/sandboxed_api/examples/hello_sapi/BUILD.bazel @@ -30,6 +30,7 @@ sapi_library( functions = [ "AddTwoIntegers", ], + generator_version = 1, input_files = ["hello_lib.cc"], lib = ":hello_lib", lib_name = "Hello", diff --git a/sandboxed_api/examples/stringop/BUILD.bazel b/sandboxed_api/examples/stringop/BUILD.bazel index 3f70d86..9ef9be8 100644 --- a/sandboxed_api/examples/stringop/BUILD.bazel +++ b/sandboxed_api/examples/stringop/BUILD.bazel @@ -54,6 +54,7 @@ sapi_library( "violate", "get_raw_c_string", ], + generator_version = 1, input_files = ["stringop.cc"], lib = ":stringop", lib_name = "Stringop", diff --git a/sandboxed_api/examples/sum/BUILD.bazel b/sandboxed_api/examples/sum/BUILD.bazel index fdd967b..bb5959e 100644 --- a/sandboxed_api/examples/sum/BUILD.bazel +++ b/sandboxed_api/examples/sum/BUILD.bazel @@ -60,6 +60,7 @@ sapi_library( "sleep_for_sec", "sumproto", ], + generator_version = 1, input_files = [ "sum.c", "sum_cpp.cc", diff --git a/sandboxed_api/examples/zlib/BUILD.bazel b/sandboxed_api/examples/zlib/BUILD.bazel index a727c8a..b6403e2 100644 --- a/sandboxed_api/examples/zlib/BUILD.bazel +++ b/sandboxed_api/examples/zlib/BUILD.bazel @@ -28,6 +28,7 @@ sapi_library( "deflate", "deflateEnd", ], + generator_version = 1, lib = "@net_zlib//:zlib", lib_name = "Zlib", namespace = "sapi::zlib", diff --git a/sandboxed_api/tools/generator2/BUILD.bazel b/sandboxed_api/tools/generator2/BUILD.bazel index 1b8436e..cce8dae 100644 --- a/sandboxed_api/tools/generator2/BUILD.bazel +++ b/sandboxed_api/tools/generator2/BUILD.bazel @@ -60,6 +60,7 @@ cc_library( # Targets for testing if generated code compiles sapi_library( name = "tests_sapi_generator", + generator_version = 1, input_files = [ "testdata/tests.cc", "testdata/tests2.cc",