-
Notifications
You must be signed in to change notification settings - Fork 509
Automatic generation of method export file for shared libraries #4986
Comments
All methods in user supplied assemblies. NativeCallable entry points used internally by the implementation should be excluded. |
Working on this first |
BTW: The non-Windows platforms have .def file equivalent as well. It is passed to the linker using |
Will take a look, thanks |
Currently we don't need to specify a definition file on Unix for NativeCallable methods because all symbols are exported by default. Are you looking at |
Yes, either that or making the CoreRT symbols hidden by default - emit the CoreRT symbols on Unix with the same set of flags as clang emits them with Exporting all symbols by default bloats the binary a lot. This is primarily a binary size optimization, a pretty significant one I think. |
At this time when building a shared library on Windows (.dll) you have to specify the path to a handcrafted .def file. The compiler should automatically generate a def file on Windows for all methods marked with the
NativeCallable
attributesParent issue: #1285
The text was updated successfully, but these errors were encountered: