forked from bytecodealliance/wasmtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix build on 32-bit Windows; consolidate CI platform checks
This commit fixes the build of the `wasmtime` crate and CLI on 32-bit Windows. This required adding some extra bits for trap handling and a stub for "unimplemented" for unwind information registration. This then additionally refactored our CI configuration to place all of the cross-compile checks in one matrix instead of spread out across a few jobs. Closes bytecodealliance#9882
- Loading branch information
1 parent
d621b45
commit 8372018
Showing
5 changed files
with
86 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//! Module for Windows x86 ABI unwind registry. | ||
//! | ||
//! Note that this is not implemented at this time because there is no Cranelift | ||
//! backend foR windows. | ||
use crate::prelude::*; | ||
use std::mem; | ||
|
||
pub enum UnwindRegistration {} | ||
|
||
impl UnwindRegistration { | ||
#[allow(missing_docs)] | ||
pub const SECTION_NAME: &'static str = ".pdata"; | ||
|
||
#[allow(missing_docs)] | ||
pub unsafe fn new( | ||
_base_address: *const u8, | ||
_unwind_info: *const u8, | ||
_unwind_len: usize, | ||
) -> Result<UnwindRegistration> { | ||
bail!("unwind registration unimplemented on i686 windows") | ||
} | ||
} |
File renamed without changes.