Compile on windows (#62)

* Don't check for rdynamic linking on Windows for now, fixes Windows builds

---------

Co-authored-by: Jaroslaw Konik <konikjar@gmail.com>
This commit is contained in:
Curt Reyes 2025-06-01 06:19:43 -06:00 committed by GitHub
parent c6bdfb1400
commit e430795dce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -510,7 +510,7 @@ impl<R: Runtime> Default for Callbacks<R> {
} }
} }
#[cfg(debug_assertions)] #[cfg(all(debug_assertions, unix))]
pub extern "C" fn is_rdynamic_linking() -> bool { pub extern "C" fn is_rdynamic_linking() -> bool {
unsafe { unsafe {
// Get a function pointer to itself // Get a function pointer to itself
@ -524,6 +524,12 @@ pub extern "C" fn is_rdynamic_linking() -> bool {
} }
} }
#[cfg(any(not(debug_assertions), not(unix)))]
pub extern "C" fn is_rdynamic_linking() -> bool {
// On Windows or in release builds, return a default value
true
}
pub mod prelude { pub mod prelude {
pub use crate::{BuildScriptingRuntime as _, Runtime as _, Script}; pub use crate::{BuildScriptingRuntime as _, Runtime as _, Script};
} }