Protobuf Team Bot
d2177912c7
Internal change
...
PiperOrigin-RevId: 456338456
2 years ago
Protobuf Team
9f371b781b
Set explicit mnemonic for Starlark action.
...
This will allow us to differentiate where the action was created.
PiperOrigin-RevId: 441195283
3 years ago
Protobuf Team
b8edc7153f
Internal change
...
PiperOrigin-RevId: 435056074
3 years ago
Joshua Haberman
8c530f9226
Changed generated code deps to avoid deps on core libraries.
...
This will allow the core libraries to be visibility controlled if
necessary.
3 years ago
Fabian Meumertzheim
5ea5b05530
Build tools in the exec configuration
...
Bazel has deprecated the host configuration and replaced it with the
exec configuration, which has proper support for transitions and remote
build execution.
3 years ago
Joshua Haberman
314e840a77
Fixed error message in Bazel aspect.
...
Fixes: https://github.com/protocolbuffers/upb/issues/391
3 years ago
Joshua Haberman
823eb09694
Update all 2011 dates to 2021.
4 years ago
Joshua Haberman
e59d2c8fa7
Added license headers to all files.
4 years ago
Esun Kim
3cab8a38fc
Fixed upbdefs error
4 years ago
Joshua Haberman
7a54a5f3d6
Split the code generators for .upb and .upbdefs.
...
Before there was a single code generator that generated both
.upb and .upbdefs, even though they are generated by different
rules. This worked fine as long as the codegen steps were
sandboxed, but if not it led to build errors.
Fixes https://github.com/protocolbuffers/upb/issues/354 .
4 years ago
Joshua Haberman
555fbbc0bc
Size benchmarks are working pretty well.
4 years ago
Joshua Haberman
3a3efe69a2
Added incompatible_use_toolchain_transition = True per https://github.com/bazelbuild/bazel/issues/11584
4 years ago
Joshua Haberman
e8f9eac68c
Added #defines UPB_ENABLE_FASTTABLE and UPB_TRY_ENABLE_FASTTABLE.
...
These control whether fasttable decoding is on.
4 years ago
Benjamin Peterson
b5bd5807a7
Migrate to modern Starlark linking api.
...
See https://github.com/bazelbuild/bazel/issues/10860 .
4 years ago
Joshua Haberman
7e5bd65098
Plumbed copts (including the crucial -std=c99) to upb_proto_library() aspect.
4 years ago
Joshua Haberman
a274ad786a
Plumbed copts (including the crucial -std=c99) to upb_proto_library() aspect.
4 years ago
Joshua Haberman
a345af9883
Added a codegen parameter for whether fasttables are generated or not.
...
Example:
$ CC=clang bazel build -c opt --copt=-g benchmarks:benchmark --//:fasttable_enabled=false
INFO: Build option --//:fasttable_enabled has changed, discarding analysis cache.
INFO: Analyzed target //benchmarks:benchmark (0 packages loaded, 913 targets configured).
INFO: Found 1 target...
Target //benchmarks:benchmark up-to-date:
bazel-bin/benchmarks/benchmark
INFO: Elapsed time: 0.760s, Critical Path: 0.58s
INFO: 7 processes: 1 internal, 6 linux-sandbox.
INFO: Build completed successfully, 7 total actions
$ bazel-bin/benchmarks/benchmark --benchmark_filter=BM_Parse_Upb
------------------------------------------------------------------------------
Benchmark Time CPU Iterations
------------------------------------------------------------------------------
BM_Parse_Upb_FileDesc_WithArena 10985 ns 10984 ns 63567 651.857MB/s
BM_Parse_Upb_FileDesc_WithInitialBlock 10556 ns 10554 ns 66138 678.458MB/s
$ CC=clang bazel build -c opt --copt=-g benchmarks:benchmark --//:fasttable_enabled=true
INFO: Build option --//:fasttable_enabled has changed, discarding analysis cache.
INFO: Analyzed target //benchmarks:benchmark (0 packages loaded, 913 targets configured).
INFO: Found 1 target...
Target //benchmarks:benchmark up-to-date:
bazel-bin/benchmarks/benchmark
INFO: Elapsed time: 0.744s, Critical Path: 0.58s
INFO: 7 processes: 1 internal, 6 linux-sandbox.
INFO: Build completed successfully, 7 total actions
$ bazel-bin/benchmarks/benchmark --benchmark_filter=BM_Parse_Upb
------------------------------------------------------------------------------
Benchmark Time CPU Iterations
------------------------------------------------------------------------------
BM_Parse_Upb_FileDesc_WithArena 3284 ns 3284 ns 213495 2.1293GB/s
BM_Parse_Upb_FileDesc_WithInitialBlock 2882 ns 2882 ns 243069 2.4262GB/s
Biggest unknown is whether this parameter should default to true or false.
4 years ago
Joshua Haberman
e3f41de6c7
Split monolithic BUILD file into many build files.
4 years ago
Joshua Haberman
d225dfc2ed
Buildifier formatting fixes.
4 years ago
Joshua Haberman
6fe84526be
Mark _is_bazel to be replace in google3.
4 years ago
Joshua Haberman
8f11ec57d2
Applied changes from google3.
5 years ago
Joshua Haberman
0dc2394da5
Changes to support import into google3 ( #291 )
...
* Fixes for google3.
* Added to failure list for new failure.
* Reused existing failure list file.
* Add a ./ to assist rewriting.
5 years ago
Yannic
d638d74d1b
Add load statements for @rules_proto ( #271 )
...
This makes upb compatible with --incompatible_load_proto_rules_from_bzl.
See https://github.com/bazelbuild/bazel/issues/8922
5 years ago
Joshua Haberman
6c5d5afc43
Remove compatibility code for old Bazel versions.
5 years ago
Anna R
a27429f265
Add port_def.inc and port_undef.inc to generated code hdrs
5 years ago
Anna R
3797ad2217
port should not be public
5 years ago
Anna R
fc4941183f
Add :port dependencies to libraries that include it
5 years ago
Joshua Haberman
626ec4bfcf
Everything builds, test pass except test_decoder.
5 years ago
Lizan Zhou
b973c06480
prefix bazel_version
...
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
5 years ago
Joshua Haberman
5768e68ed7
Fixed for Bazel >= 1.0.
5 years ago
Nicolas "Pixel" Noble
a2013f0fc2
Trying to be more flexible with the version of bazel we can use here.
5 years ago
Nicolas "Pixel" Noble
6e85c2bf03
Fixing the separator string.
5 years ago
Nicolas "Pixel" Noble
9605c7093c
Revert previous fix - to_list() is too new, or...?
5 years ago
Joshua Haberman
ee87a28d2d
Some minor style fixes.
6 years ago
Joshua Haberman
493e9b2614
Build fixes from fuzz target.
6 years ago
Joshua Haberman
75d680d7b0
Small fix to upb_proto_library().
6 years ago
Joshua Haberman
57a63d4c7b
Fixed upb_proto_library() logic for calculating output dir.
6 years ago
Joshua Haberman
ba29af3a6a
Hid generated-code-only headers inside a separate library.
6 years ago
Laurent Le Brun
1a5a609b0e
Update upb_proto_library.bzl for Bazel compatibility
...
With this change, the code now builds with the flags --incompatible_depset_is_not_iterable, --incompatible_new_actions_api, and --incompatible_no_support_tools_in_action_inputs.
These flags will soon be enabled by default in Bazel.
6 years ago
Marcel Hlopko
6d204851d2
Update upb to be forward compatible with Bazel 0.27
...
Specifically, this PR prepares up for:
https://github.com/bazelbuild/bazel/issues/7793
https://github.com/bazelbuild/bazel/issues/7260
6 years ago
Joshua Haberman
5611ff267b
Moved bazel files to bazel/ directory.
6 years ago
Joshua Haberman
06b90f9b69
Split upb_proto_library.bzl into its own .bzl file.
6 years ago
Joshua Haberman
1cf4af7b2c
A (final?) round of Blaze fixes.
6 years ago
Joshua Haberman
e04216eb0f
More Blaze fixes.
6 years ago
Joshua Haberman
7913bc678a
Removed obsolete references to runfiles scripts.
6 years ago
Joshua Haberman
81e813d389
Made upb_proto_reflection_library() a true aspect.
6 years ago
Joshua Haberman
301b6e2d78
Removed map_dep() in favor of rewrites.
6 years ago
Joshua Haberman
13eb14986b
More fixes for Blaze.
6 years ago
Joshua Haberman
a37877a326
Fixes for Blaze.
6 years ago
Joshua Haberman
0fea70b4d9
Works with Bazel 0.24.1 and Bazel 0.25.2!
6 years ago