File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 89
89
with :
90
90
target : i686-unknown-linux-gnu
91
91
92
- - name : Install gcc-multilib
93
- run : sudo apt-get update && sudo apt-get install gcc-multilib
92
+ - name : Install gcc-multilib and musl-tools
93
+ run : sudo apt-get update && sudo apt-get install gcc-multilib musl-tools
94
94
- name : Check compilation for x86 32bit
95
95
uses : actions-rs/cargo@v1
96
96
with :
@@ -107,6 +107,16 @@ jobs:
107
107
command : check
108
108
args : --target aarch64-linux-android
109
109
110
+ - uses : actions-rs/toolchain@v1
111
+ with :
112
+ target : i686-unknown-linux-musl
113
+
114
+ - name : Check compilation for musl
115
+ uses : actions-rs/cargo@v1
116
+ with :
117
+ command : check
118
+ args : --target i686-unknown-linux-musl
119
+
110
120
- uses : actions-rs/toolchain@v1
111
121
with :
112
122
target : wasm32-unknown-unknown
Original file line number Diff line number Diff line change @@ -556,6 +556,7 @@ pub mod module {
556
556
target_os = "freebsd" ,
557
557
target_os = "android"
558
558
) ) ]
559
+ #[ cfg( not( target_env = "musl" ) ) ]
559
560
fn try_to_libc ( & self , vm : & VirtualMachine ) -> PyResult < libc:: sched_param > {
560
561
use crate :: AsObject ;
561
562
let priority_class = self . sched_priority . class ( ) ;
@@ -625,6 +626,7 @@ pub mod module {
625
626
target_os = "freebsd" ,
626
627
target_os = "android"
627
628
) ) ]
629
+ #[ cfg( not( target_env = "musl" ) ) ]
628
630
#[ pyfunction]
629
631
fn sched_setscheduler ( args : SchedSetschedulerArgs , vm : & VirtualMachine ) -> PyResult < i32 > {
630
632
let libc_sched_param = args. sched_param_obj . try_to_libc ( vm) ?;
@@ -675,6 +677,7 @@ pub mod module {
675
677
target_os = "freebsd" ,
676
678
target_os = "android"
677
679
) ) ]
680
+ #[ cfg( not( target_env = "musl" ) ) ]
678
681
#[ pyfunction]
679
682
fn sched_setparam ( args : SchedSetParamArgs , vm : & VirtualMachine ) -> PyResult < i32 > {
680
683
let libc_sched_param = args. sched_param_obj . try_to_libc ( vm) ?;
You can’t perform that action at this time.
0 commit comments