about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/build-managers/bazel/bazel_4/no-arc.patch
blob: 012e613c2f19eea95a25a0bce2f84ceec48e2678 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- a/tools/osx/xcode_locator.m	2020-12-10 13:27:29.000000000 +0100
+++ b/tools/osx/xcode_locator.m	2021-02-01 09:09:32.159557051 +0100
@@ -21,10 +21,6 @@
 // 6,6.4,6.4.1 = 6.4.1
 // 6.3,6.3.0 = 6.3
 
-#if !defined(__has_feature) || !__has_feature(objc_arc)
-#error "This file requires ARC support."
-#endif
-
 #import <CoreServices/CoreServices.h>
 #import <Foundation/Foundation.h>
 
--- a/tools/osx/xcode_configure.bzl	1980-01-01 01:00:00.000000000 +0100
+++ b/tools/osx/xcode_configure.bzl	2021-02-01 09:36:57.773418444 +0100
@@ -123,7 +123,6 @@
         "macosx",
         "clang",
         "-mmacosx-version-min=10.9",
-        "-fobjc-arc",
         "-framework",
         "CoreServices",
         "-framework",
--- a/tools/osx/BUILD	2021-02-01 11:01:02.191659553 +0100
+++ b/tools/osx/BUILD	2021-02-01 11:04:29.735071019 +0100
@@ -27,7 +27,7 @@
 ])
 
 DARWIN_XCODE_LOCATOR_COMPILE_COMMAND = """
-  /usr/bin/xcrun --sdk macosx clang -mmacosx-version-min=10.9 -fobjc-arc -framework CoreServices \
+  /usr/bin/xcrun --sdk macosx clang -mmacosx-version-min=10.9 -framework CoreServices \
       -framework Foundation -o $@ $<
 """