* 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
···176 # argument if it's found to be an empty string.
177 ../trim-last-argument-to-gcc-if-empty.patch
17800000000179 # --experimental_strict_action_env (which may one day become the default
180 # see bazelbuild/bazel#2574) hardcodes the default
181 # action environment to a non hermetic value (e.g. "/usr/local/bin").
···370 src/tools/xcode/realpath/BUILD \
371 src/tools/xcode/stdredirect/BUILD \
372 tools/osx/BUILD
00373374 # nixpkgs's libSystem cannot use pthread headers directly, must import GCD headers instead
375 sed -i -e "/#include <pthread\/spawn.h>/i #include <dispatch/dispatch.h>" src/main/cpp/blaze_util_darwin.cc
···176 # argument if it's found to be an empty string.
177 ../trim-last-argument-to-gcc-if-empty.patch
178179+ # On Darwin, using clang 6 to build fails because of a linker error (see #105573),
180+ # but using clang 7 fails because libarclite_macosx.a cannot be found when linking
181+ # the xcode_locator tool.
182+ # This patch removes using the -fobjc-arc compiler option and makes the code
183+ # compile without automatic reference counting. Caveat: this leaks memory, but
184+ # we neglect this fact.
185+ ./no-arc.patch
186+187 # --experimental_strict_action_env (which may one day become the default
188 # see bazelbuild/bazel#2574) hardcodes the default
189 # action environment to a non hermetic value (e.g. "/usr/local/bin").
···378 src/tools/xcode/realpath/BUILD \
379 src/tools/xcode/stdredirect/BUILD \
380 tools/osx/BUILD
381+382+ substituteInPlace scripts/bootstrap/compile.sh --replace ' -mmacosx-version-min=10.9' ""
383384 # nixpkgs's libSystem cannot use pthread headers directly, must import GCD headers instead
385 sed -i -e "/#include <pthread\/spawn.h>/i #include <dispatch/dispatch.h>" src/main/cpp/blaze_util_darwin.cc