We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
dlsym!
1 parent 82f5cdf commit 4c99219Copy full SHA for 4c99219
library/std/src/sys/pal/unix/weak.rs
@@ -27,6 +27,16 @@ use crate::marker::{FnPtr, PhantomData};
27
use crate::sync::atomic::{Atomic, AtomicPtr, Ordering};
28
use crate::{mem, ptr};
29
30
+// We currently only test `dlsym!`, but that doesn't work on all platforms, so
31
+// we gate the tests to only the platforms where it is actually used.
32
+//
33
+// FIXME(joboet): add more tests, reorganise the whole module and get rid of
34
+// `#[allow(dead_code, unused_macros)]`.
35
+#[cfg(any(
36
+ target_vendor = "apple",
37
+ all(target_os = "linux", target_env = "gnu"),
38
+ target_os = "freebsd",
39
+))]
40
#[cfg(test)]
41
mod tests;
42
0 commit comments