Skip to content

Commit 30f4c01

Browse files
committed
Fix GNUStep linking
1 parent c142d8f commit 30f4c01

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

objc2/benches/autorelease.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ extern "C" {}
1717

1818
const BYTES: &[u8] = &[1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
1919

20-
fn empty() {}
20+
fn empty() {
21+
#[cfg(gnustep)]
22+
unsafe {
23+
objc2::__gnustep_hack::get_class_to_force_linkage()
24+
};
25+
}
2126

2227
fn pool_cleanup() {
2328
autoreleasepool(|_| {})

0 commit comments

Comments
 (0)