Unverified Commit 68f48a62 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

bazel_7: fix build on Darwin (bring `utimensat` in scope) (#470005)

parents cf9b3534 2d3b37aa
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -431,6 +431,11 @@ stdenv.mkDerivation rec {
          sedVerbose $wrapper \
            -e "s,/usr/bin/xcrun install_name_tool,${cctools}/bin/install_name_tool,g"
        done

        # set --macos_sdk_version to make utimensat visible:
        sedVerbose compile.sh \
          -e "/bazel_build /a\  --macos_sdk_version=${stdenv.hostPlatform.darwinMinVersion} \\\\" \

      '';

      genericPatches = ''