mirror of https://github.com/hannobraun/Fornjot
Merge pull request #1308 from hannobraun/version
Disable model version check on Windows
This commit is contained in:
commit
5aa8d218be
|
@ -105,6 +105,12 @@ impl Model {
|
||||||
let lib = libloading::Library::new(&self.lib_path)
|
let lib = libloading::Library::new(&self.lib_path)
|
||||||
.map_err(Error::LoadingLibrary)?;
|
.map_err(Error::LoadingLibrary)?;
|
||||||
|
|
||||||
|
if cfg!(target_os = "windows") {
|
||||||
|
warn!(
|
||||||
|
"Version check is disabled on Windows (see \
|
||||||
|
https://github.com/hannobraun/Fornjot/issues/1307)"
|
||||||
|
);
|
||||||
|
} else {
|
||||||
let version_pkg: libloading::Symbol<fn() -> RawVersion> =
|
let version_pkg: libloading::Symbol<fn() -> RawVersion> =
|
||||||
lib.get(b"version_pkg").map_err(Error::LoadingVersion)?;
|
lib.get(b"version_pkg").map_err(Error::LoadingVersion)?;
|
||||||
|
|
||||||
|
@ -132,6 +138,7 @@ impl Model {
|
||||||
|
|
||||||
warn!("{}", Error::VersionMismatch { host, model });
|
warn!("{}", Error::VersionMismatch { host, model });
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
let init: libloading::Symbol<abi::InitFunction> = lib
|
let init: libloading::Symbol<abi::InitFunction> = lib
|
||||||
.get(abi::INIT_FUNCTION_NAME.as_bytes())
|
.get(abi::INIT_FUNCTION_NAME.as_bytes())
|
||||||
|
|
|
@ -30,7 +30,7 @@ impl Platform for Unix {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Represents common apis availiable independent of hosts
|
// Abstracts over differences in host platforms
|
||||||
pub struct HostPlatform;
|
pub struct HostPlatform;
|
||||||
|
|
||||||
impl HostPlatform {
|
impl HostPlatform {
|
||||||
|
|
Loading…
Reference in New Issue