Skip to content

Commit

Permalink
[fuchsia] Fix DynamicLibrary.open path on Fuchsia (flutter#27819)
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik authored Jul 30, 2021
1 parent f110bc7 commit f18a930
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shell/platform/fuchsia/dart-pkg/zircon/lib/src/init.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

part of zircon;

final _kLibZirconDartPath = '/pkg/lib/libzircon_ffi.so';
final _kZirconFFILibName = 'libzircon_ffi.so';
final _kLibZirconDartPath = '/pkg/lib/$_kZirconFFILibName';

class _Bindings {
static ZirconFFIBindings? _bindings;
Expand All @@ -17,7 +18,7 @@ class _Bindings {
}

if (_bindings == null) {
final _dylib = DynamicLibrary.open(_kLibZirconDartPath);
final _dylib = DynamicLibrary.open(_kZirconFFILibName);
_bindings = ZirconFFIBindings(_dylib);
}
return _bindings;
Expand Down

0 comments on commit f18a930

Please sign in to comment.