-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bazel_7: re-enable arc in xcode_locator command
- Loading branch information
Showing
2 changed files
with
6 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 3 additions & 33 deletions
36
pkgs/development/tools/build-managers/bazel/bazel_7/xcode_locator.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,13 @@ | ||
diff --git a/tools/osx/BUILD b/tools/osx/BUILD | ||
index 0358fb0ffe..baae1bf65b 100644 | ||
--- a/tools/osx/BUILD | ||
+++ b/tools/osx/BUILD | ||
@@ -27,9 +27,8 @@ exports_files([ | ||
]) | ||
@@ -28,8 +28,8 @@ exports_files([ | ||
|
||
DARWIN_XCODE_LOCATOR_COMPILE_COMMAND = """ | ||
- /usr/bin/xcrun --sdk macosx clang -mmacosx-version-min=10.13 -fobjc-arc -framework CoreServices \ | ||
/usr/bin/xcrun --sdk macosx clang -mmacosx-version-min=10.13 -fobjc-arc -framework CoreServices \ | ||
- -framework Foundation -arch arm64 -arch x86_64 -Wl,-no_adhoc_codesign -Wl,-no_uuid -o $@ $< && \ | ||
+ -framework Foundation -Wl,-no_adhoc_codesign -Wl,-no_uuid -o $@ $< && \ | ||
- env -i codesign --identifier $@ --force --sign - $@ | ||
+ /usr/bin/xcrun --sdk macosx clang -framework CoreServices -framework Foundation -Wl,-no_uuid -o $@ $< && \ | ||
+ /usr/bin/env -i /usr/bin/codesign --identifier $@ --force --sign - $@ | ||
""" | ||
|
||
genrule( | ||
diff --git a/tools/osx/xcode_configure.bzl b/tools/osx/xcode_configure.bzl | ||
index a4a712a341..dfbf4869a9 100644 | ||
--- a/tools/osx/xcode_configure.bzl | ||
+++ b/tools/osx/xcode_configure.bzl | ||
@@ -135,7 +135,6 @@ def run_xcode_locator(repository_ctx, xcode_locator_src_label): | ||
"macosx", | ||
"clang", | ||
"-mmacosx-version-min=10.13", | ||
- "-fobjc-arc", | ||
"-framework", | ||
"CoreServices", | ||
"-framework", | ||
diff --git a/tools/osx/xcode_locator.m b/tools/osx/xcode_locator.m | ||
index c602b0bb4b..1f7eb64810 100644 | ||
--- a/tools/osx/xcode_locator.m | ||
+++ b/tools/osx/xcode_locator.m | ||
@@ -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> | ||
|