-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify release artifacts for protoc to statically link system libraries.
Closes #12063 PiperOrigin-RevId: 512742784
- Loading branch information
1 parent
462964e
commit 68bcd12
Showing
11 changed files
with
40 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
build:cross_config --crosstool_top=//toolchain:clang_suite | ||
build:cross_config --host_crosstool_top=@bazel_tools//tools/cpp:toolchain | ||
|
||
build:linux-aarch_64 --config=cross_config --cpu=linux-aarch_64 | ||
build:linux-aarch64 --config=cross_config --cpu=linux-aarch_64 | ||
build:linux-ppcle_64 --config=cross_config --cpu=linux-ppcle_64 | ||
build:linux-ppc64le --config=cross_config --cpu=linux-ppcle_64 | ||
build:linux-s390_64 --config=cross_config --cpu=linux-s390_64 | ||
build:linux-x86_32 --config=cross_config --cpu=linux-x86_32 | ||
build:linux-i386 --config=cross_config --cpu=linux-x86_32 | ||
build:linux-x86_64 --config=cross_config --cpu=linux-x86_64 | ||
build:osx-aarch_64 --config=cross_config --action_env=MACOSX_DEPLOYMENT_TARGET=10.9 --cpu=osx-aarch_64 | ||
build:osx-x86_64 --config=cross_config --action_env=MACOSX_DEPLOYMENT_TARGET=10.9 --cpu=osx-x86_64 | ||
build:win32 --config=cross_config --cpu=win32 | ||
build:win64 --config=cross_config --cpu=win64 | ||
# When cross-compiling we need to statically link all C++ libraries. | ||
build:cross_linux --config=cross_config --linkopt="-static" | ||
build:cross_windows --config=cross_config --linkopt="-static" | ||
# This isn't possible on mac because there is no static library for lcrt0.o | ||
build:cross_osx --config=cross_config | ||
|
||
build:linux-aarch_64 --config=cross_linux --cpu=linux-aarch_64 | ||
build:linux-aarch64 --config=cross_linux --cpu=linux-aarch_64 | ||
build:linux-ppcle_64 --config=cross_linux --cpu=linux-ppcle_64 | ||
build:linux-ppc64le --config=cross_linux --cpu=linux-ppcle_64 | ||
build:linux-s390_64 --config=cross_linux --cpu=linux-s390_64 | ||
build:linux-x86_32 --config=cross_linux --cpu=linux-x86_32 | ||
build:linux-i386 --config=cross_linux --cpu=linux-x86_32 | ||
build:linux-x86_64 --config=cross_linux --cpu=linux-x86_64 | ||
build:osx-aarch_64 --config=cross_osx --action_env=MACOSX_DEPLOYMENT_TARGET=10.9 --cpu=osx-aarch_64 | ||
build:osx-x86_64 --config=cross_osx --action_env=MACOSX_DEPLOYMENT_TARGET=10.9 --cpu=osx-x86_64 | ||
build:win32 --config=cross_windows --cpu=win32 | ||
build:win64 --config=cross_windows --cpu=win64 |