File tree Expand file tree Collapse file tree 1 file changed +19
-23
lines changed Expand file tree Collapse file tree 1 file changed +19
-23
lines changed Original file line number Diff line number Diff line change @@ -406,31 +406,27 @@ export const linkableLib = async (arg: LibraryArg) => {
406
406
407
407
// Check for the dylib if requested.
408
408
if ( dylib ) {
409
- tests . push ( async ( ) => {
410
- // Combine internal libnames with external runtime dependency libnames.
411
- const dylibName_ = dylibName ( name ) ;
412
-
413
- // Assert the files exist.
414
- await fileExists ( {
409
+ const dylibName_ = dylibName ( name ) ;
410
+ const runtimeDepDirs = runtimeDeps . map ( ( dep ) => dep . directory ) ;
411
+ const runtimeDepLibs = runtimeDeps . flatMap ( ( dep ) =>
412
+ dep . libs . map ( dylibName ) ,
413
+ ) ;
414
+ tests . push (
415
+ fileExists ( {
415
416
directory : arg . directory ,
416
417
subpath : `lib/${ dylibName_ } ` ,
417
- } ) ;
418
-
419
- // Assert it can be dlopened.
420
- const runtimeDepDirs = runtimeDeps . map ( ( dep ) => dep . directory ) ;
421
- const runtimeDepLibs = runtimeDeps . flatMap ( ( dep ) =>
422
- dep . libs . map ( dylibName ) ,
423
- ) ;
424
- await dlopen ( {
425
- directory : arg . directory ,
426
- dylib : dylibName_ ,
427
- env,
428
- host,
429
- runtimeDepDirs,
430
- runtimeDepLibs,
431
- sdk,
432
- } ) ;
433
- } ) ;
418
+ } ) . then ( ( ) =>
419
+ dlopen ( {
420
+ directory : arg . directory ,
421
+ dylib : dylibName_ ,
422
+ env,
423
+ host,
424
+ runtimeDepDirs,
425
+ runtimeDepLibs,
426
+ sdk,
427
+ } ) ,
428
+ ) ,
429
+ ) ;
434
430
}
435
431
436
432
// Check for the staticlib if requested.
You can’t perform that action at this time.
0 commit comments