-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use native_toolchain_rust
to build ICU4X binary
#857
Comments
This would certainly need some changes in |
Static linking will not be supported in the foreseeable future, but we are planning on producing a static library to remove unused symbols with the linker in the link hook, which produces the actual dylib being used at runtime. |
Yes, the idea is to build static libs in the build hooks and then use the native linker to build a dynamic lib in the link hook. (At some point far in the future we might want to actually have the static lib linked to the AOT snapshot of Dart, but that requires a lot more changes.) |
@mosuem, I published 0.1.0-dev.7 which supports extra cargo arguments. No support for static libraries, but I think I'd wait with that until there is actual support in native assets. Is there something else required? |
Thanks - let me take a look.
#866 will add static libraries. Dart doesn't support static linking, but we will build static libraries in the build hook, and then link them to get a dynamic library in the link hook. This is how we intend to treeshake symbols from the library. |
I don't think |
|
I see. That should be fairly easy to add. The remaining thing is the assumption that builder is always building a dylib. |
Instead of a manual
Process.run('cargo'...
, usepackage:native_toolchain_rust
.fyi @knopp @dcharkes
The text was updated successfully, but these errors were encountered: