File tree 4 files changed +28
-12
lines changed
4 files changed +28
-12
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ woff2 = "0.3.0"
26
26
[target .'cfg(not(any(target_os = "linux", target_family = "wasm")))' .dependencies ]
27
27
mimalloc = " 0.1"
28
28
29
- [target .'cfg(target_os = "linux")' .dependencies ]
29
+ [target .'cfg(all( target_os = "linux", not(target_arch = "arm")) )' .dependencies ]
30
30
mimalloc = { version = " 0.1" , features = [" local_dynamic_tls" ] }
31
31
32
32
[target .'cfg(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 , 'resvgjs.linux-arm-gnueabihf.node' )
229
- )
230
- try {
231
- if ( localFileExisted ) {
232
- nativeBinding = require ( './resvgjs.linux-arm-gnueabihf.node' )
233
- } else {
234
- nativeBinding = require ( '@resvg/resvg-js-linux-arm-gnueabihf' )
227
+ if ( isMusl ( ) ) {
228
+ localFileExisted = existsSync (
229
+ join ( __dirname , 'resvgjs.linux-arm-musleabihf.node' )
230
+ )
231
+ try {
232
+ if ( localFileExisted ) {
233
+ nativeBinding = require ( './resvgjs.linux-arm-musleabihf.node' )
234
+ } else {
235
+ nativeBinding = require ( '@resvg/resvg-js-linux-arm-musleabihf' )
236
+ }
237
+ } catch ( e ) {
238
+ loadError = e
239
+ }
240
+ } else {
241
+ localFileExisted = existsSync (
242
+ join ( __dirname , 'resvgjs.linux-arm-gnueabihf.node' )
243
+ )
244
+ try {
245
+ if ( localFileExisted ) {
246
+ nativeBinding = require ( './resvgjs.linux-arm-gnueabihf.node' )
247
+ } else {
248
+ nativeBinding = require ( '@resvg/resvg-js-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 @@ -35,6 +35,7 @@ use error::Error;
35
35
use usvg:: NodeExt ;
36
36
37
37
#[ cfg( all( not( target_family = "wasm" ) , not( debug_assertions) , ) ) ]
38
+ #[ cfg( not( all( target_os = "linux" , target_arch = "arm" ) ) ) ]
38
39
#[ global_allocator]
39
40
static ALLOC : mimalloc:: MiMalloc = mimalloc:: MiMalloc ;
40
41
Original file line number Diff line number Diff line change 1
- // Generated by dts-bundle-generator v9.3 .1
1
+ // Generated by dts-bundle-generator v9.5 .1
2
2
3
3
declare class BBox {
4
4
free ( ) : void ;
You can’t perform that action at this time.
0 commit comments