diff --git a/3000-Add-loongarch64-support.patch b/3000-Add-loongarch64-support.patch new file mode 100644 index 0000000000000000000000000000000000000000..2f7f1790e436d77b128eee8db851de9c7d3af415 --- /dev/null +++ b/3000-Add-loongarch64-support.patch @@ -0,0 +1,312 @@ +From 47a0288fc96530d5ff20db75124873aa38b2b4d9 Mon Sep 17 00:00:00 2001 +From: yangchenguang +Date: Fri, 26 May 2023 11:02:03 +0800 +Subject: [PATCH 9000/9001] Add loongarch64 support + +Signed-off-by: yangchenguang +--- + platforms/cpu/BUILD | 10 +++++++ + src/conditions/BUILD | 9 ++++++ + src/conditions/BUILD.tools | 9 ++++++ + .../lib/analysis/config/AutoCpuConverter.java | 4 +++ + .../LocalConfigPlatformFunction.java | 2 ++ + .../google/devtools/build/lib/util/CPU.java | 1 + + tools/cpp/BUILD.tools | 29 +++++++++++++++++++ + tools/cpp/lib_cc_configure.bzl | 2 ++ + tools/jdk/BUILD.tools | 2 ++ + tools/platforms/BUILD | 7 +++++ + tools/platforms/BUILD.tools | 7 +++++ + 11 files changed, 82 insertions(+) + mode change 100755 => 100644 platforms/cpu/BUILD + mode change 100755 => 100644 src/conditions/BUILD + mode change 100755 => 100644 src/conditions/BUILD.tools + mode change 100755 => 100644 src/main/java/com/google/devtools/build/lib/analysis/config/AutoCpuConverter.java + mode change 100755 => 100644 src/main/java/com/google/devtools/build/lib/bazel/repository/LocalConfigPlatformFunction.java + mode change 100755 => 100644 src/main/java/com/google/devtools/build/lib/util/CPU.java + mode change 100755 => 100644 tools/cpp/BUILD.tools + mode change 100755 => 100644 tools/cpp/lib_cc_configure.bzl + mode change 100755 => 100644 tools/jdk/BUILD.tools + mode change 100755 => 100644 tools/platforms/BUILD + mode change 100755 => 100644 tools/platforms/BUILD.tools + +diff --git a/platforms/cpu/BUILD b/platforms/cpu/BUILD +old mode 100755 +new mode 100644 +index 51a968a..84f05f9 +--- a/platforms/cpu/BUILD ++++ b/platforms/cpu/BUILD +@@ -124,3 +124,13 @@ constraint_value( + name = "riscv64", + constraint_setting = ":cpu", + ) ++ ++constraint_value( ++ name = "sw64", ++ constraint_setting = ":cpu", ++) ++ ++constraint_value( ++ name = "loongarch64", ++ constraint_setting = ":cpu", ++) +diff --git a/src/conditions/BUILD b/src/conditions/BUILD +old mode 100755 +new mode 100644 +index d5bfac6..8cf3a8c +--- a/src/conditions/BUILD ++++ b/src/conditions/BUILD +@@ -84,6 +84,15 @@ config_setting( + visibility = ["//visibility:public"], + ) + ++config_setting( ++ name = "linux_loongarch64", ++ constraint_values = [ ++ "@platforms//os:linux", ++ "@platforms//cpu:loongarch64", ++ ], ++ visibility = ["//visibility:public"], ++) ++ + config_setting( + name = "linux_x86_64", + constraint_values = [ +diff --git a/src/conditions/BUILD.tools b/src/conditions/BUILD.tools +old mode 100755 +new mode 100644 +index aafdb4f..6641d43 +--- a/src/conditions/BUILD.tools ++++ b/src/conditions/BUILD.tools +@@ -69,6 +69,15 @@ config_setting( + visibility = ["//visibility:public"], + ) + ++config_setting( ++ name = "linux_loongarch64", ++ constraint_values = [ ++ "@platforms//os:linux", ++ "@platforms//cpu:loongarch64", ++ ], ++ visibility = ["//visibility:public"], ++) ++ + config_setting( + name = "linux_x86_64", + constraint_values = [ +diff --git a/src/main/java/com/google/devtools/build/lib/analysis/config/AutoCpuConverter.java b/src/main/java/com/google/devtools/build/lib/analysis/config/AutoCpuConverter.java +old mode 100755 +new mode 100644 +index 07b1352..529094e +--- a/src/main/java/com/google/devtools/build/lib/analysis/config/AutoCpuConverter.java ++++ b/src/main/java/com/google/devtools/build/lib/analysis/config/AutoCpuConverter.java +@@ -74,6 +74,8 @@ public class AutoCpuConverter implements Converter { + return "mips64"; + case RISCV64: + return "riscv64"; ++ case LOONGARCH64: ++ return "loongarch64"; + default: + return "unknown"; + } +@@ -118,6 +120,8 @@ public class AutoCpuConverter implements Converter { + return Pair.of(CPU.MIPS64, OS.LINUX); + case "riscv64": + return Pair.of(CPU.RISCV64, OS.LINUX); ++ case "loongarch64": ++ return Pair.of(CPU.LOONGARCH64, OS.LINUX); + default: + // fall through + } +diff --git a/src/main/java/com/google/devtools/build/lib/bazel/repository/LocalConfigPlatformFunction.java b/src/main/java/com/google/devtools/build/lib/bazel/repository/LocalConfigPlatformFunction.java +old mode 100755 +new mode 100644 +index c67b109..a20f4fd +--- a/src/main/java/com/google/devtools/build/lib/bazel/repository/LocalConfigPlatformFunction.java ++++ b/src/main/java/com/google/devtools/build/lib/bazel/repository/LocalConfigPlatformFunction.java +@@ -120,6 +120,8 @@ public class LocalConfigPlatformFunction extends RepositoryFunction { + return "@platforms//cpu:mips64"; + case RISCV64: + return "@platforms//cpu:riscv64"; ++ case LOONGARCH64: ++ return "@platforms//cpu:loongarch64"; + default: + // Unknown, so skip it. + return null; +diff --git a/src/main/java/com/google/devtools/build/lib/util/CPU.java b/src/main/java/com/google/devtools/build/lib/util/CPU.java +old mode 100755 +new mode 100644 +index 88ae4a3..04f3e7d +--- a/src/main/java/com/google/devtools/build/lib/util/CPU.java ++++ b/src/main/java/com/google/devtools/build/lib/util/CPU.java +@@ -29,6 +29,7 @@ public enum CPU { + S390X("s390x", ImmutableSet.of("s390x", "s390")), + MIPS64("mips64", ImmutableSet.of("mips64el", "mips64")), + RISCV64("riscv64", ImmutableSet.of("riscv64")), ++ LOONGARCH64("loongarch64", ImmutableSet.of("loongarch64")), + UNKNOWN("unknown", ImmutableSet.of()); + + private final String canonicalName; +diff --git a/tools/cpp/BUILD.tools b/tools/cpp/BUILD.tools +old mode 100755 +new mode 100644 +index 3a85d5f..8c596dd +--- a/tools/cpp/BUILD.tools ++++ b/tools/cpp/BUILD.tools +@@ -108,6 +108,7 @@ cc_toolchain_suite( + "ppc|compiler": ":cc-compiler-ppc", + "mips64|compiler": ":cc-compiler-mips64", + "riscv64|compiler": ":cc-compiler-riscv64", ++ "loongarch64|compiler": ":cc-compiler-loongarch64", + "k8": ":cc-compiler-local", + "piii": ":cc-compiler-local", + "arm": ":cc-compiler-local", +@@ -117,6 +118,7 @@ cc_toolchain_suite( + "ppc64": ":cc-compiler-local", + "mips64": ":cc-compiler-local", + "riscv64": ":cc-compiler-local", ++ "loongarch64": ":cc-compiler-local", + "darwin": ":cc-compiler-darwin", + "freebsd": ":cc-compiler-freebsd", + "armeabi-v7a": ":cc-compiler-armeabi-v7a", +@@ -268,6 +270,33 @@ toolchain( + toolchain_type = ":toolchain_type", + ) + ++cc_toolchain( ++ name = "cc-compiler-loongarch64", ++ all_files = ":empty", ++ ar_files = ":empty", ++ as_files = ":empty", ++ compiler_files = ":empty", ++ dwp_files = ":empty", ++ linker_files = ":empty", ++ objcopy_files = ":empty", ++ strip_files = ":empty", ++ supports_param_files = 1, ++ toolchain_config = ":local_linux", ++ toolchain_identifier = "local_linux", ++) ++ ++toolchain( ++ name = "cc-toolchain-loongarch64", ++ exec_compatible_with = [ ++ "@platforms//cpu:loongarch64", ++ ], ++ target_compatible_with = [ ++ "@platforms//cpu:loongarch64", ++ ], ++ toolchain = ":cc-compiler-loongarch64", ++ toolchain_type = ":toolchain_type", ++) ++ + cc_toolchain( + name = "cc-compiler-armeabi-v7a", + all_files = ":empty", +diff --git a/tools/cpp/lib_cc_configure.bzl b/tools/cpp/lib_cc_configure.bzl +old mode 100755 +new mode 100644 +index f8689fb..dc229ca +--- a/tools/cpp/lib_cc_configure.bzl ++++ b/tools/cpp/lib_cc_configure.bzl +@@ -202,6 +202,8 @@ def get_cpu_value(repository_ctx): + return "mips64" + if arch in ["riscv64"]: + return "riscv64" ++ if arch in ["loongarch64"]: ++ return "loongarch64" + if arch in ["arm", "armv7l"]: + return "arm" + if arch in ["aarch64"]: +diff --git a/tools/jdk/BUILD.tools b/tools/jdk/BUILD.tools +old mode 100755 +new mode 100644 +index 347d15d..52c101f +--- a/tools/jdk/BUILD.tools ++++ b/tools/jdk/BUILD.tools +@@ -95,6 +95,7 @@ cc_library( + "//src/conditions:linux_s390x": [":jni_md_header-linux"], + "//src/conditions:linux_mips64": [":jni_md_header-linux"], + "//src/conditions:linux_riscv64": [":jni_md_header-linux"], ++ "//src/conditions:linux_loongarch64": [":jni_md_header-linux"], + "//src/conditions:linux_x86_64": [":jni_md_header-linux"], + "//src/conditions:darwin": [":jni_md_header-darwin"], + "//src/conditions:freebsd": [":jni_md_header-freebsd"], +@@ -108,6 +109,7 @@ cc_library( + "//src/conditions:linux_s390x": ["include/linux"], + "//src/conditions:linux_mips64": [":include/linux"], + "//src/conditions:linux_riscv64": [":include/linux"], ++ "//src/conditions:linux_loongarch64": ["include/linux"], + "//src/conditions:linux_x86_64": ["include/linux"], + "//src/conditions:darwin": ["include/darwin"], + "//src/conditions:freebsd": ["include/freebsd"], +diff --git a/tools/platforms/BUILD b/tools/platforms/BUILD +old mode 100755 +new mode 100644 +index 18ff33e..796ac33 +--- a/tools/platforms/BUILD ++++ b/tools/platforms/BUILD +@@ -63,6 +63,11 @@ alias( + actual = "@platforms//cpu:riscv64", + ) + ++alias( ++ name = "loongarch64", ++ actual = "@platforms//cpu:loongarch64", ++) ++ + alias( + name = "os", + actual = "@platforms//os:os", +@@ -121,6 +126,7 @@ platform( + "@platforms//cpu:s390x", + "@platforms//cpu:mips64", + "@platforms//cpu:riscv64", ++ "@platforms//cpu:loongarch64", + ], + host_platform = True, + os_constraints = [ +@@ -145,6 +151,7 @@ platform( + "@platforms//cpu:s390x", + "@platforms//cpu:mips64", + "@platforms//cpu:riscv64", ++ "@platforms//cpu:loongarch64", + ], + os_constraints = [ + "@platforms//os:osx", +diff --git a/tools/platforms/BUILD.tools b/tools/platforms/BUILD.tools +old mode 100755 +new mode 100644 +index 27a11ae..e9f115f +--- a/tools/platforms/BUILD.tools ++++ b/tools/platforms/BUILD.tools +@@ -51,6 +51,11 @@ alias( + actual = "@platforms//cpu:riscv64", + ) + ++alias( ++ name = "loongarch64", ++ actual = "@platforms//cpu:loongarch64", ++) ++ + alias( + name = "os", + actual = "@platforms//os:os", +@@ -109,6 +114,7 @@ platform( + "@platforms//cpu:s390x", + "@platforms//cpu:mips64", + "@platforms//cpu:riscv64", ++ "@platforms//cpu:loongarch64", + ], + host_platform = True, + os_constraints = [ +@@ -133,6 +139,7 @@ platform( + "@platforms//cpu:s390x", + "@platforms//cpu:mips64", + "@platforms//cpu:riscv64", ++ "@platforms//cpu:loongarch64", + ], + os_constraints = [ + "@platforms//os:osx", +-- +2.33.0 + diff --git a/3001-Add-sw_64-support.patch b/3001-Add-sw_64-support.patch new file mode 100644 index 0000000000000000000000000000000000000000..9c78621304690b5cfda63221a61dcd94906a9cd6 --- /dev/null +++ b/3001-Add-sw_64-support.patch @@ -0,0 +1,260 @@ +From 17f25a2f65419e0b2b3f4d467eec3f9a677cb96a Mon Sep 17 00:00:00 2001 +From: yangchenguang +Date: Fri, 26 May 2023 11:18:56 +0800 +Subject: [PATCH 9001/9001] Add sw_64 support + +Signed-off-by: yangchenguang +--- + src/conditions/BUILD | 9 ++++++ + src/conditions/BUILD.tools | 9 ++++++ + .../lib/analysis/config/AutoCpuConverter.java | 4 +++ + .../LocalConfigPlatformFunction.java | 2 ++ + .../google/devtools/build/lib/util/CPU.java | 1 + + tools/cpp/BUILD.tools | 29 +++++++++++++++++++ + tools/cpp/lib_cc_configure.bzl | 2 ++ + tools/jdk/BUILD.tools | 2 ++ + tools/platforms/BUILD | 7 +++++ + tools/platforms/BUILD.tools | 7 +++++ + 10 files changed, 72 insertions(+) + +diff --git a/src/conditions/BUILD b/src/conditions/BUILD +index 8cf3a8c..2133344 100644 +--- a/src/conditions/BUILD ++++ b/src/conditions/BUILD +@@ -93,6 +93,15 @@ config_setting( + visibility = ["//visibility:public"], + ) + ++config_setting( ++ name = "linux_sw64", ++ constraint_values = [ ++ "@platforms//os:linux", ++ "@platforms//cpu:sw64", ++ ], ++ visibility = ["//visibility:public"], ++) ++ + config_setting( + name = "linux_x86_64", + constraint_values = [ +diff --git a/src/conditions/BUILD.tools b/src/conditions/BUILD.tools +index 6641d43..8ab67ae 100644 +--- a/src/conditions/BUILD.tools ++++ b/src/conditions/BUILD.tools +@@ -78,6 +78,15 @@ config_setting( + visibility = ["//visibility:public"], + ) + ++config_setting( ++ name = "linux_sw64", ++ constraint_values = [ ++ "@platforms//os:linux", ++ "@platforms//cpu:sw64", ++ ], ++ visibility = ["//visibility:public"], ++) ++ + config_setting( + name = "linux_x86_64", + constraint_values = [ +diff --git a/src/main/java/com/google/devtools/build/lib/analysis/config/AutoCpuConverter.java b/src/main/java/com/google/devtools/build/lib/analysis/config/AutoCpuConverter.java +index 529094e..cbe3879 100644 +--- a/src/main/java/com/google/devtools/build/lib/analysis/config/AutoCpuConverter.java ++++ b/src/main/java/com/google/devtools/build/lib/analysis/config/AutoCpuConverter.java +@@ -76,6 +76,8 @@ public class AutoCpuConverter implements Converter { + return "riscv64"; + case LOONGARCH64: + return "loongarch64"; ++ case SW64: ++ return "sw64"; + default: + return "unknown"; + } +@@ -122,6 +124,8 @@ public class AutoCpuConverter implements Converter { + return Pair.of(CPU.RISCV64, OS.LINUX); + case "loongarch64": + return Pair.of(CPU.LOONGARCH64, OS.LINUX); ++ case "sw64": ++ return Pair.of(CPU.SW64, OS.LINUX); + default: + // fall through + } +diff --git a/src/main/java/com/google/devtools/build/lib/bazel/repository/LocalConfigPlatformFunction.java b/src/main/java/com/google/devtools/build/lib/bazel/repository/LocalConfigPlatformFunction.java +index a20f4fd..0d82d0b 100644 +--- a/src/main/java/com/google/devtools/build/lib/bazel/repository/LocalConfigPlatformFunction.java ++++ b/src/main/java/com/google/devtools/build/lib/bazel/repository/LocalConfigPlatformFunction.java +@@ -122,6 +122,8 @@ public class LocalConfigPlatformFunction extends RepositoryFunction { + return "@platforms//cpu:riscv64"; + case LOONGARCH64: + return "@platforms//cpu:loongarch64"; ++ case SW64: ++ return "@platforms//cpu:sw64"; + default: + // Unknown, so skip it. + return null; +diff --git a/src/main/java/com/google/devtools/build/lib/util/CPU.java b/src/main/java/com/google/devtools/build/lib/util/CPU.java +index 04f3e7d..8940afe 100644 +--- a/src/main/java/com/google/devtools/build/lib/util/CPU.java ++++ b/src/main/java/com/google/devtools/build/lib/util/CPU.java +@@ -30,6 +30,7 @@ public enum CPU { + MIPS64("mips64", ImmutableSet.of("mips64el", "mips64")), + RISCV64("riscv64", ImmutableSet.of("riscv64")), + LOONGARCH64("loongarch64", ImmutableSet.of("loongarch64")), ++ SW64("sw64", ImmutableSet.of("sw64", "sw_64")), + UNKNOWN("unknown", ImmutableSet.of()); + + private final String canonicalName; +diff --git a/tools/cpp/BUILD.tools b/tools/cpp/BUILD.tools +index 8c596dd..501feed 100644 +--- a/tools/cpp/BUILD.tools ++++ b/tools/cpp/BUILD.tools +@@ -109,6 +109,7 @@ cc_toolchain_suite( + "mips64|compiler": ":cc-compiler-mips64", + "riscv64|compiler": ":cc-compiler-riscv64", + "loongarch64|compiler": ":cc-compiler-loongarch64", ++ "sw64|compiler": ":cc-compiler-sw64", + "k8": ":cc-compiler-local", + "piii": ":cc-compiler-local", + "arm": ":cc-compiler-local", +@@ -119,6 +120,7 @@ cc_toolchain_suite( + "mips64": ":cc-compiler-local", + "riscv64": ":cc-compiler-local", + "loongarch64": ":cc-compiler-local", ++ "sw64": ":cc-compiler-local", + "darwin": ":cc-compiler-darwin", + "freebsd": ":cc-compiler-freebsd", + "armeabi-v7a": ":cc-compiler-armeabi-v7a", +@@ -297,6 +299,33 @@ toolchain( + toolchain_type = ":toolchain_type", + ) + ++cc_toolchain( ++ name = "cc-compiler-sw64", ++ all_files = ":empty", ++ ar_files = ":empty", ++ as_files = ":empty", ++ compiler_files = ":empty", ++ dwp_files = ":empty", ++ linker_files = ":empty", ++ objcopy_files = ":empty", ++ strip_files = ":empty", ++ supports_param_files = 1, ++ toolchain_config = ":local_linux", ++ toolchain_identifier = "local_linux", ++) ++ ++toolchain( ++ name = "cc-toolchain-sw64", ++ exec_compatible_with = [ ++ "@platforms//cpu:sw64", ++ ], ++ target_compatible_with = [ ++ "@platforms//cpu:sw64", ++ ], ++ toolchain = ":cc-compiler-sw64", ++ toolchain_type = ":toolchain_type", ++) ++ + cc_toolchain( + name = "cc-compiler-armeabi-v7a", + all_files = ":empty", +diff --git a/tools/cpp/lib_cc_configure.bzl b/tools/cpp/lib_cc_configure.bzl +index dc229ca..3bfecd7 100644 +--- a/tools/cpp/lib_cc_configure.bzl ++++ b/tools/cpp/lib_cc_configure.bzl +@@ -204,6 +204,8 @@ def get_cpu_value(repository_ctx): + return "riscv64" + if arch in ["loongarch64"]: + return "loongarch64" ++ if arch in ["sw64", "sw_64"]: ++ return "sw64" + if arch in ["arm", "armv7l"]: + return "arm" + if arch in ["aarch64"]: +diff --git a/tools/jdk/BUILD.tools b/tools/jdk/BUILD.tools +index 52c101f..7236c5f 100644 +--- a/tools/jdk/BUILD.tools ++++ b/tools/jdk/BUILD.tools +@@ -96,6 +96,7 @@ cc_library( + "//src/conditions:linux_mips64": [":jni_md_header-linux"], + "//src/conditions:linux_riscv64": [":jni_md_header-linux"], + "//src/conditions:linux_loongarch64": [":jni_md_header-linux"], ++ "//src/conditions:linux_sw64": [":jni_md_header-linux"], + "//src/conditions:linux_x86_64": [":jni_md_header-linux"], + "//src/conditions:darwin": [":jni_md_header-darwin"], + "//src/conditions:freebsd": [":jni_md_header-freebsd"], +@@ -110,6 +111,7 @@ cc_library( + "//src/conditions:linux_mips64": [":include/linux"], + "//src/conditions:linux_riscv64": [":include/linux"], + "//src/conditions:linux_loongarch64": ["include/linux"], ++ "//src/conditions:linux_sw64": ["include/linux"], + "//src/conditions:linux_x86_64": ["include/linux"], + "//src/conditions:darwin": ["include/darwin"], + "//src/conditions:freebsd": ["include/freebsd"], +diff --git a/tools/platforms/BUILD b/tools/platforms/BUILD +index 796ac33..5c17786 100644 +--- a/tools/platforms/BUILD ++++ b/tools/platforms/BUILD +@@ -68,6 +68,11 @@ alias( + actual = "@platforms//cpu:loongarch64", + ) + ++alias( ++ name = "sw64", ++ actual = "@platforms//cpu:sw64", ++) ++ + alias( + name = "os", + actual = "@platforms//os:os", +@@ -127,6 +132,7 @@ platform( + "@platforms//cpu:mips64", + "@platforms//cpu:riscv64", + "@platforms//cpu:loongarch64", ++ "@platforms//cpu:sw64", + ], + host_platform = True, + os_constraints = [ +@@ -152,6 +158,7 @@ platform( + "@platforms//cpu:mips64", + "@platforms//cpu:riscv64", + "@platforms//cpu:loongarch64", ++ "@platforms//cpu:sw64", + ], + os_constraints = [ + "@platforms//os:osx", +diff --git a/tools/platforms/BUILD.tools b/tools/platforms/BUILD.tools +index e9f115f..479e46d 100644 +--- a/tools/platforms/BUILD.tools ++++ b/tools/platforms/BUILD.tools +@@ -56,6 +56,11 @@ alias( + actual = "@platforms//cpu:loongarch64", + ) + ++alias( ++ name = "sw64", ++ actual = "@platforms//cpu:sw64", ++) ++ + alias( + name = "os", + actual = "@platforms//os:os", +@@ -115,6 +120,7 @@ platform( + "@platforms//cpu:mips64", + "@platforms//cpu:riscv64", + "@platforms//cpu:loongarch64", ++ "@platforms//cpu:sw64", + ], + host_platform = True, + os_constraints = [ +@@ -140,6 +146,7 @@ platform( + "@platforms//cpu:mips64", + "@platforms//cpu:riscv64", + "@platforms//cpu:loongarch64", ++ "@platforms//cpu:sw64", + ], + os_constraints = [ + "@platforms//os:osx", +-- +2.33.0 + diff --git a/bazel-5.1.1-dist.zip b/bazel-5.1.1-dist.zip index be19be117e4432a94caa0cf143332e3c57f9f6e0..80e6bdfc8de9e2c7a1f05d6f3f3f6f49292c83ef 100644 Binary files a/bazel-5.1.1-dist.zip and b/bazel-5.1.1-dist.zip differ diff --git a/bazel.spec b/bazel.spec index 71c55f31645e85e5e12793c1b4d7a4aee53c3847..0d174718f9bab8568d8ec57a8c51093b517a851d 100644 --- a/bazel.spec +++ b/bazel.spec @@ -2,12 +2,14 @@ Name: bazel Version: 5.1.1 -Release: 0 +Release: 1 Summary: Correct, reproducible, and fast builds for everyone. License: Apache License 2.0 URL: http://bazel.io/ Source0: https://github.com/bazelbuild/bazel/releases/download/%{version}/bazel-%{version}-dist.zip +Patch3000: 3000-Add-loongarch64-support.patch +Patch3001: 3001-Add-sw_64-support.patch # for folks with 'bazel' v1 package installed Conflicts: bazel Conflicts: bazel2 @@ -25,7 +27,7 @@ Requires: java-11-openjdk-devel Correct, reproducible, and fast builds for everyone. %prep -%setup -q -c -n bazel-%{version} +%autosetup -c -n %{name}-%{version} -p1 %build find . -type f -regextype posix-extended -iregex '.*(sh|txt|py|_stub|stub_.*|bazel|get_workspace_status|protobuf_support|_so)' -exec %{__sed} -i -e '1s|^#!/usr/bin/env python$|#!/usr/bin/env python3|' "{}" \; @@ -79,6 +81,9 @@ env ./scripts/generate_bash_completion.sh --bazel=output/bazel --output=output/b %attr(0755,root,root) %{bashcompdir}/bazel %changelog +* Thu Aug 10 2023 yeqinglong - 5.1.1-1 +- add loongarch64 and sw_64 support + * Tue Nov 8 2022 Jincheng Miao - 5.1.1-0 - Update version to 5.1.1 for TF-2.10.0 build