Cannot build Dart as a shared library on Windows #54537
Labels
area-tools
A meta category for issues that should be addressed by tooling (prefer more concrete areas).
os-windows
type-enhancement
A request for a change that isn't a bug
Locally I patch:
runtime/BUILD.gn
:ole32.lib
) in thedart_shared_lib
configbin:dart_io_api
(since Dart withoutdart:io
is unfortunately "awful" to deal with, also requires exporting symbols indart_io_api.h
)While this patch is mostly sustainable, Dart's tests that directly link to
dart.lib
on Windows need to also link an appropriate DLL library. e.g.libdart_jit.dll.lib
.The reason why I build Dart as a shared library is to reduce iteration time & enable usage outside of GN. It works well, other than these build-related issues. Of course this use-case is somewhat atypical, but isn't much of a burden to support (I think shared objects build fine on Linux).
The text was updated successfully, but these errors were encountered: