[bazel] Avoid globally linking macOS SDK frameworks (#7927)

This commit is contained in:
David Vo
2025-04-26 03:37:42 +10:00
committed by GitHub
parent d98ad815b1
commit d04e15b957
2 changed files with 7 additions and 11 deletions

View File

@@ -40,6 +40,13 @@ objc_library(
"src/main/native/include",
"src/main/native/objcpp",
],
sdk_frameworks = [
"CoreFoundation",
"AVFoundation",
"Foundation",
"CoreMedia",
"CoreVideo",
],
tags = ["manual"],
deps = [
"//wpinet:wpinet.static",

View File

@@ -26,17 +26,6 @@ build:macos --conlyopt=-Wno-missing-field-initializers
build:macos --conlyopt=-Wno-unused-private-field
build:macos --conlyopt=-Wno-fixed-enum-extension"
build:macos --linkopt=-framework
build:macos --linkopt=CoreFoundation
build:macos --linkopt=-framework
build:macos --linkopt=AVFoundation
build:macos --linkopt=-framework
build:macos --linkopt=Foundation
build:macos --linkopt=-framework
build:macos --linkopt=CoreMedia
build:macos --linkopt=-framework
build:macos --linkopt=CoreVideo
build:macos --linkopt=-headerpad_max_install_names
build:macos --linkopt=-Wl,-rpath,'@loader_path'"