File tree 3 files changed +27
-11
lines changed
3 files changed +27
-11
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ crate-type = ["cdylib"]
18
18
[target .'cfg(not(any(target_os = "linux", target_family = "wasm")))' .dependencies ]
19
19
mimalloc = " 0.1"
20
20
21
- [target .'cfg(target_os = "linux")' .dependencies ]
21
+ [target .'cfg(all( target_os = "linux", not(target_arch = "arm")) )' .dependencies ]
22
22
mimalloc = { version = " 0.1" , features = [" local_dynamic_tls" ] }
23
23
24
24
[target .'cfg(not(target_arch = "wasm32"))' .dependencies ]
Original file line number Diff line number Diff line change @@ -224,17 +224,32 @@ switch (platform) {
224
224
}
225
225
break
226
226
case 'arm' :
227
- localFileExisted = existsSync (
228
- join ( __dirname , 'css-inline.linux-arm-gnueabihf.node' )
229
- )
230
- try {
231
- if ( localFileExisted ) {
232
- nativeBinding = require ( './css-inline.linux-arm-gnueabihf.node' )
233
- } else {
234
- nativeBinding = require ( '@css-inline/css-inline-linux-arm-gnueabihf' )
227
+ if ( isMusl ( ) ) {
228
+ localFileExisted = existsSync (
229
+ join ( __dirname , 'css-inline.linux-arm-musleabihf.node' )
230
+ )
231
+ try {
232
+ if ( localFileExisted ) {
233
+ nativeBinding = require ( './css-inline.linux-arm-musleabihf.node' )
234
+ } else {
235
+ nativeBinding = require ( '@css-inline/css-inline-linux-arm-musleabihf' )
236
+ }
237
+ } catch ( e ) {
238
+ loadError = e
239
+ }
240
+ } else {
241
+ localFileExisted = existsSync (
242
+ join ( __dirname , 'css-inline.linux-arm-gnueabihf.node' )
243
+ )
244
+ try {
245
+ if ( localFileExisted ) {
246
+ nativeBinding = require ( './css-inline.linux-arm-gnueabihf.node' )
247
+ } else {
248
+ nativeBinding = require ( '@css-inline/css-inline-linux-arm-gnueabihf' )
249
+ }
250
+ } catch ( e ) {
251
+ loadError = e
235
252
}
236
- } catch ( e ) {
237
- loadError = e
238
253
}
239
254
break
240
255
case 'riscv64' :
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ mod options;
8
8
use options:: Options ;
9
9
10
10
#[ cfg( not( target_family = "wasm" ) ) ]
11
+ #[ cfg( not( all( target_os = "linux" , target_arch = "arm" ) ) ) ]
11
12
#[ global_allocator]
12
13
static ALLOC : mimalloc:: MiMalloc = mimalloc:: MiMalloc ;
13
14
You can’t perform that action at this time.
0 commit comments