Browse Source
Fix `cranelift-codegen` build script for Pulley backends (#9172 )
* Fix `cranelift-codegen` build script for Pulley backends
The cargo feature is called "pulley" for both the pulley32 and pulley64
backends, since they are the same code, but the build script was checking for
cargo features named "pulley32" and "pulley64" instead.
* Fix warnings in build
pull/9175/head
Nick Fitzgerald
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with
11 additions and
8 deletions
.github/workflows/main.yml
cranelift/codegen/build.rs
cranelift/codegen/src/isa/pulley_shared/mod.rs
cranelift/codegen/src/machinst/isle.rs
@ -384,9 +384,10 @@ jobs:
-p wasmtime-cli --all-features
-p wasmtime-cli --features component-model
- name : cranelift-codegen benches
- name : cranelift-codegen
checks : |
--benches -p cranelift-codegen
-p cranelift-codegen --benches
-p cranelift-codegen --no-default-features --features std,unwind,pulley
- name : wasmtime-bench-api
checks : |
@ -36,7 +36,12 @@ fn main() {
. iter ( )
. cloned ( )
. filter ( | isa | {
let env_key = format ! ( "CARGO_FEATURE_{}" , isa . to_string ( ) . to_uppercase ( ) ) ;
let env_key = match isa {
meta ::isa ::Isa ::Pulley32 | meta ::isa ::Isa ::Pulley64 = > {
"CARGO_FEATURE_PULLEY" . to_string ( )
}
_ = > format ! ( "CARGO_FEATURE_{}" , isa . to_string ( ) . to_uppercase ( ) ) ,
} ;
all_arch | | env ::var ( env_key ) . is_ok ( )
} )
. collect ::< Vec < _ > > ( ) ;
@ -122,7 +122,7 @@ where
let emit_info = EmitInfo ::new ( self . flags . clone ( ) , self . isa_flags . clone ( ) ) ;
let sigs = SigSet ::new ::< abi ::PulleyMachineDeps < P > > ( func , & self . flags ) ? ;
let abi = abi ::PulleyCallee ::new ( func , self , & self . isa_flags , & sigs ) ? ;
machinst ::compile ::compile ::< Self > ( func , domtree , self , abi , emit_info , sigs , ctrl_plane )
machinst ::compile ::< Self > ( func , domtree , self , abi , emit_info , sigs , ctrl_plane )
}
}
@ -6,10 +6,7 @@ use std::cell::Cell;
pub use super ::MachLabel ;
use super ::RetPair ;
pub use crate ::ir ::{
condcodes ::CondCode , dynamic_to_fixed , Constant , DynamicStackSlot , ExternalName , FuncRef ,
GlobalValue , Immediate , SigRef , StackSlot ,
} ;
pub use crate ::ir ::{ condcodes ::CondCode , * } ;
pub use crate ::isa ::{ unwind ::UnwindInst , TargetIsa } ;
pub use crate ::machinst ::{
ABIArg , ABIArgSlot , ABIMachineSpec , CallSite , InputSourceInst , Lower , LowerBackend , RealReg ,