File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,9 @@ staking = ["cosmwasm-std/staking"]
20
20
stargate = [" cosmwasm-std/stargate" ]
21
21
# Use cranelift backend instead of singlepass. This is required for development on Windows.
22
22
#
23
- # LEGACY: This doesn't do anything anymore. Cranelift is automatically pulled in on Windows.
24
- cranelift = []
23
+ # Note: This feature is automatically enabled on Windows, you don't have to toggle it manually anymore.
24
+ # This is just to be able to debug issues with Cranelift on non-Windows platforms.
25
+ cranelift = [" wasmer/cranelift" ]
25
26
# For heap profiling. Only used in the "heap_profiling" example.
26
27
dhat-heap = [" dep:dhat" ]
27
28
Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ fn cost(_operator: &Operator) -> u64 {
28
28
29
29
/// Creates the appropriate compiler config for the platform
30
30
pub fn make_compiler_config ( ) -> impl CompilerConfig + Into < Engine > {
31
- #[ cfg( target_family = "windows" ) ]
31
+ #[ cfg( any ( feature = "cranelift" , target_family = "windows" ) ) ]
32
32
return wasmer:: Cranelift :: new ( ) ;
33
- #[ cfg( not( target_family = "windows" ) ) ]
33
+ #[ cfg( not( any ( feature = "cranelift" , target_family = "windows" ) ) ) ]
34
34
wasmer:: Singlepass :: new ( )
35
35
}
36
36
You can’t perform that action at this time.
0 commit comments