Skip to content

Commit fc9ed7e

Browse files
committed
rust: make CoreFoundation an optional dependency on iOS builds
1 parent a43190d commit fc9ed7e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,12 @@ lazy_static! {
225225
max_compatibility_version: "3.9.0".try_into().unwrap(),
226226
required: false,
227227
},
228+
// For some reason, CoreFoundation is present in debug/noopt builds but not
229+
// LTO builds.
228230
MachOAllowedDylib {
229231
name: "/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation".to_string(),
230232
max_compatibility_version: "150.0.0".try_into().unwrap(),
231-
required: true,
233+
required: false,
232234
},
233235
MachOAllowedDylib {
234236
name: "/usr/lib/libSystem.B.dylib".to_string(),

0 commit comments

Comments
 (0)