* use default stdenv (clang 7) * add no-arc.patch to make the xcode_locate tool compile without libarc-lite * remove the `-mmacosx-version-min=10.9` flag from the bootstrap compile script
···176176 # argument if it's found to be an empty string.
177177 ../trim-last-argument-to-gcc-if-empty.patch
178178179179+ # On Darwin, using clang 6 to build fails because of a linker error (see #105573),
180180+ # but using clang 7 fails because libarclite_macosx.a cannot be found when linking
181181+ # the xcode_locator tool.
182182+ # This patch removes using the -fobjc-arc compiler option and makes the code
183183+ # compile without automatic reference counting. Caveat: this leaks memory, but
184184+ # we neglect this fact.
185185+ ./no-arc.patch
186186+179187 # --experimental_strict_action_env (which may one day become the default
180188 # see bazelbuild/bazel#2574) hardcodes the default
181189 # action environment to a non hermetic value (e.g. "/usr/local/bin").
···370378 src/tools/xcode/realpath/BUILD \
371379 src/tools/xcode/stdredirect/BUILD \
372380 tools/osx/BUILD
381381+382382+ substituteInPlace scripts/bootstrap/compile.sh --replace ' -mmacosx-version-min=10.9' ""
373383374384 # nixpkgs's libSystem cannot use pthread headers directly, must import GCD headers instead
375385 sed -i -e "/#include <pthread\/spawn.h>/i #include <dispatch/dispatch.h>" src/main/cpp/blaze_util_darwin.cc