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:
parent
c6bdfb1400
commit
e430795dce
1 changed files with 7 additions and 1 deletions
|
|
@ -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};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue