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.
1 parent c6bdfb1 commit e430795Copy full SHA for e430795
src/lib.rs
@@ -510,7 +510,7 @@ impl<R: Runtime> Default for Callbacks<R> {
510
}
511
512
513
-#[cfg(debug_assertions)]
+#[cfg(all(debug_assertions, unix))]
514
pub extern "C" fn is_rdynamic_linking() -> bool {
515
unsafe {
516
// Get a function pointer to itself
@@ -524,6 +524,12 @@ pub extern "C" fn is_rdynamic_linking() -> bool {
524
525
526
527
+#[cfg(any(not(debug_assertions), not(unix)))]
528
+pub extern "C" fn is_rdynamic_linking() -> bool {
529
+ // On Windows or in release builds, return a default value
530
+ true
531
+}
532
+
533
pub mod prelude {
534
pub use crate::{BuildScriptingRuntime as _, Runtime as _, Script};
535
0 commit comments