fix: isolate macos-specific dependencies (#6854)

Release Notes:
- N/A
This commit is contained in:
Amin Yahyaabadi 2024-01-27 04:38:55 -08:00 committed by GitHub
parent 1f83b5c508
commit 0e4d9472a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 24 additions and 16 deletions

View file

@ -35,7 +35,10 @@ pub struct SwiftTarget {
const MACOS_TARGET_VERSION: &str = "10.15.7";
fn main() {
if cfg!(not(any(test, feature = "test-support"))) {
if cfg!(all(
target_os = "macos",
not(any(test, feature = "test-support"))
)) {
let swift_target = get_swift_target();
build_bridge(&swift_target);