Commit Graph

55 Commits (main)

Author SHA1 Message Date
Protobuf Team Bot 83ec410d30 Internal change
PiperOrigin-RevId: 619377672
2024-03-27 05:50:55 -07:00
Sandy Zhang aa3b976f42 Update minimum macOS to 10.15.
This is per the updated OSS foundational support (https://github.com/google/oss-policies-info/blob/main/foundational-cxx-support-matrix.md) since Chrome has raised its minimum macOS requirements.

PiperOrigin-RevId: 601224079
2024-01-24 13:55:18 -08:00
Sandy Zhang 22e845e279 Add a release flag to disambiguate between release and local config_settings.
This flag will be set in UPB which will be submitted separately due to version skew between repos.

This attempts to fix the following error from local and release settings both matching.
```
ERROR: /workspace/_build/out/external/upb/python/dist/BUILD.bazel:251:9: Illegal ambiguous match on configurable attribute "platform" in @upb//python/dist:binary_wheel:
@upb//python/dist:linux_x86_64_local
@upb//python/dist:windows_x86_64
Multiple matches are not allowed unless one is unambiguously more specialized or they resolve to the same value. See https://bazel.build/reference/be/functions#select.
```
PiperOrigin-RevId: 553184373
2023-08-02 10:32:23 -07:00
Mike Kruskal af791f28a8 Add libm linkage to toolchains
PiperOrigin-RevId: 513350744
2023-03-01 15:00:24 -08:00
Joshua Haberman 0ff26563c9 Enable the Copybara sync for all files.
PiperOrigin-RevId: 485351777
2022-11-01 10:19:37 -07:00
deannagarcia fcd3b9a85e
Target macOS 10.9 (#10802)
Update toolchain to target macosx 10.9 to fix https://github.com/protocolbuffers/protobuf/issues/10799
2022-10-21 11:40:47 -07:00
Deanna Garcia 63b07bb86b Edit toolchain to work with absl dep 2022-10-11 21:13:55 +00:00
Mike Kruskal ed5c57a574
Remove all autotools usage (#10132)
* Bazelfying conformance tests

Adding infrastructure to "Bazelify" languages other than Java and C++

* Delete benchmarks for languages supported by other repositories

* Bazelfying benchmark tests

* Bazelfying python

Use upb's system python rule instead of branching tensorflow

* Bazelfying Ruby

* Bazelfying C#

* Bazelfying Objective-c

* Bazelfying Kokoro mac builds

* Bazelfying Kokoro linux builds

* Deleting all deprecated files from autotools cleanup

This boils down to Makefile.am and tests.sh and all of their remaining references

* Cleanup after PR reorganizing

- Enable 32 bit tests
- Move conformance tests back
- Use select statements to select alternate runtimes
- Add internal prefixes to proto library macros

* Updating READMEs to use bazel instead of autotools.

* Bazelfying Kokoro release builds

* First round of review fixes

* Second round of review fixes

* Third round of review fixes

* Filtering out conformance tests from Bazel on Windows (b/241484899)

* Add version metadata that was previously scraped from configure.ac

* fixing typo from previous fix

* Adding ruby version tests

* Bumping pinned upb version, and adding tests to python CI
2022-08-10 22:51:29 -07:00
Joshua Haberman 14803e6f63 Optimization is now working. 2022-05-10 02:06:31 +00:00
Joshua Haberman 1f3c00eaac Added default flags for all of the compilation modes. 2022-05-10 00:46:34 +00:00
deannagarcia e305932431
Merge pull request #9891 from deannagarcia/osx_toolchain
Add macosx action environment variable
2022-05-06 11:17:34 -07:00
David L. Jones 95da0ba5b4
Rename all BUILD files to BUILD.bazel (#9892)
This avoids conflicting names in a couple of cases.

1. Within google, we want to sync files but not name them BUILD (since the structure doesn't match).
2. On case-insensitive filesystems, `build` may be used for a build directory. Naming `BUILD.bazel` avoids potentioal conflicts.
2022-04-29 17:57:55 -07:00
Deanna Garcia 53002af603 Add macosx action env 2022-04-29 18:51:12 +00:00
Deanna Garcia a8b12d5b6e Consistent formatting 2022-04-06 18:43:58 +00:00
Deanna Garcia b7980cd859 Removing comment 2022-04-06 17:44:20 +00:00
Deanna Garcia 9a4c48a566 Add k8 toolchain 2022-04-06 17:42:12 +00:00
Deanna Garcia faae704730 Toolchain cleanups 2022-03-16 21:07:51 +00:00
Deanna Garcia 202ec9ed9b Removing toolchain_dir variable 2022-03-14 17:33:08 +00:00
Deanna Garcia 02be7a09f1 Changing toolchain build file 2022-03-09 23:34:31 +00:00
Deanna Garcia 93b4fa6fc7 Only exe extension for windows 2022-02-28 20:00:45 +00:00
Deanna Garcia cf05c9f84f Change sysroot flags 2022-02-18 00:39:23 +00:00
Joshua Haberman 9d01899322 Changes to build aarch64 under manylinux. 2022-02-15 18:02:10 -08:00
deannagarcia 70131e0495
Update location of llvm-ar in bazel toolchain
Change the location of the llvm-ar tool to match the new docker container.
2022-01-20 14:31:53 -08:00
deannagarcia b360b9e388
Change toolchain includes (#9318)
This fixes path resolution failures when following `#include_next` directives in headers found from paths in `extra_compiler_flags`.
2021-12-16 15:07:05 -08:00
Deanna Garcia a16629667a Removing -I include to ensure there's only one system include 2021-12-16 21:16:08 +00:00
Deanna Garcia 0fba541a69 Add comma 2021-12-04 00:33:05 +00:00
Deanna Garcia 88076658f1 Change includes 2021-12-03 23:25:36 +00:00
Deanna Garcia a863972644 Fixing windows builds 2021-12-03 18:34:37 +00:00
Deanna Garcia b9e31eaa9d merging 2021-11-24 19:50:44 +00:00
Deanna Garcia 73c57034aa Adding windows toolchains 2021-11-24 19:48:16 +00:00
deannagarcia 221169d2ac
Update toolchains.bazelrc
One more darwin->osx rewrite.
2021-11-22 11:10:44 -08:00
deannagarcia 3ad04bd4d9
Update BUILD
Change darwin to osx in two more places.
2021-11-22 10:40:37 -08:00
deannagarcia a49dbd73d6
Update BUILD
Change all the instances of "darwin" to "osx" to be consistent.
2021-11-22 10:14:26 -08:00
Deanna Garcia 8608ee97da Change sysroot flags 2021-11-19 22:56:15 +00:00
deannagarcia 6cc68c5c59
Update include directories
Add /usr/local/include to cpp builtin include directories.
2021-11-16 16:01:15 -08:00
deannagarcia 25c818e3f1
Update BUILD
Change sysroot to be specific to the folder where all the include files are.
2021-11-16 15:15:46 -08:00
deannagarcia a162273515
Update BUILD paths
Update paths for apple sdks
2021-11-16 11:38:16 -08:00
deannagarcia 76f57fd6df
Update BUILD paths
Prefix all tools paths with /root/
2021-11-12 16:06:54 -08:00
deannagarcia e75207f009
Merge pull request #9214 from protocolbuffers/fixCppVersion
Changing cpp version back to 8
2021-11-12 12:55:43 -08:00
Deanna Garcia 627bb4b60e Changing cpp version back to 8 2021-11-11 19:30:49 +00:00
deannagarcia d5b7f705f3
Merge pull request #9210 from protocolbuffers/osxToolchain
Creating bazel toolchains to compile for macOS.
2021-11-10 13:54:30 -08:00
Deanna Garcia 97c901cfb6 Fixing formatting 2021-11-10 21:27:20 +00:00
Deanna Garcia a5fa4fb019 Creating bazel toolchains to compile for macOS. 2021-11-10 21:12:44 +00:00
Derek Perez 3a4d9316aa
Creates a protoc release zip (#9188)
* Creates a protoc release zip

Mimics what we're doing manually today but powered by Bazel.

* don't special case this.

* Addressing feedback.

* adding comment about _cc_toolchain
2021-11-04 15:57:29 -07:00
Deanna Garcia a793c7f72a Fixing builds 2021-10-05 17:49:50 +00:00
Deanna Garcia 95fdfd771d Change include messages to match docker 2021-10-04 21:23:59 +00:00
Deanna Garcia f921df8ee0 Specify bits of architectures in toolchain names 2021-09-29 17:36:15 +00:00
Deanna Garcia 3a493ffae5 Change tool paths for docker 2021-09-28 19:54:14 +00:00
Deanna Garcia d1a1818898 Changing clang path 2021-09-28 18:24:37 +00:00
Deanna Garcia 5e62362a09 Changing directory of clang to match docker container 2021-09-27 22:45:46 +00:00