mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 14:25:32 +00:00
Try fixing compilation on Windows.
This commit is contained in:
parent
d1352554e3
commit
15e3a038ea
@ -1,11 +1,12 @@
|
|||||||
//! The codegen module provides common functions and data structures used by multiple backends
|
//! The codegen module provides common functions and data structures used by multiple backends
|
||||||
//! during the code generation process.
|
//! during the code generation process.
|
||||||
|
#[cfg(unix)]
|
||||||
|
use crate::fault::FaultInfo;
|
||||||
use crate::{
|
use crate::{
|
||||||
backend::RunnableModule,
|
backend::RunnableModule,
|
||||||
backend::{Backend, CacheGen, Compiler, CompilerConfig, Features, Token},
|
backend::{Backend, CacheGen, Compiler, CompilerConfig, Features, Token},
|
||||||
cache::{Artifact, Error as CacheError},
|
cache::{Artifact, Error as CacheError},
|
||||||
error::{CompileError, CompileResult},
|
error::{CompileError, CompileResult},
|
||||||
fault::FaultInfo,
|
|
||||||
module::{ModuleInfo, ModuleInner},
|
module::{ModuleInfo, ModuleInner},
|
||||||
structures::Map,
|
structures::Map,
|
||||||
types::{FuncIndex, FuncSig, SigIndex},
|
types::{FuncIndex, FuncSig, SigIndex},
|
||||||
@ -67,6 +68,7 @@ impl fmt::Debug for InternalEvent {
|
|||||||
/// Information for a breakpoint
|
/// Information for a breakpoint
|
||||||
pub struct BreakpointInfo<'a> {
|
pub struct BreakpointInfo<'a> {
|
||||||
/// Fault.
|
/// Fault.
|
||||||
|
#[cfg(unix)]
|
||||||
pub fault: Option<&'a FaultInfo>,
|
pub fault: Option<&'a FaultInfo>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -477,6 +477,7 @@ impl InstanceImage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Declarations for x86-64 registers.
|
/// Declarations for x86-64 registers.
|
||||||
|
#[cfg(unix)]
|
||||||
pub mod x64_decl {
|
pub mod x64_decl {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
@ -608,6 +609,7 @@ pub mod x64_decl {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(unix)]
|
||||||
pub mod x64 {
|
pub mod x64 {
|
||||||
//! The x64 state module contains functions to generate state and code for x64 targets.
|
//! The x64 state module contains functions to generate state and code for x64 targets.
|
||||||
pub use super::x64_decl::*;
|
pub use super::x64_decl::*;
|
||||||
|
Loading…
Reference in New Issue
Block a user