[staging-next] bazel_7: fix build with gcc 15 (#474568)
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
makeWrapper,
|
||||
writeTextFile,
|
||||
replaceVars,
|
||||
fetchpatch,
|
||||
writeShellApplication,
|
||||
makeBinaryWrapper,
|
||||
autoPatchelfHook,
|
||||
@@ -386,6 +387,12 @@ stdenv.mkDerivation rec {
|
||||
(replaceVars ./bazel_rc.patch {
|
||||
bazelSystemBazelRCPath = bazelRC;
|
||||
})
|
||||
|
||||
# Fix build with gcc 15 by adding missing headers
|
||||
(fetchpatch {
|
||||
url = "https://github.com/bazelbuild/bazel/commit/1d206cac050b6c7d9ce65403e6a9909a49bfe4bc.patch";
|
||||
hash = "sha256-Tg5o1Va7dd5hvXbWhZiog+VtuiqngqbbYOkCafVudDs=";
|
||||
})
|
||||
]
|
||||
# See enableNixHacks argument above.
|
||||
++ lib.optional enableNixHacks ./nix-build-bazel-package-hacks.patch;
|
||||
|
||||
Reference in New Issue
Block a user