Support WINDOWS_EXPORT_ALL_SYMBOLS with .def files

The `WINDOWS_EXPORT_ALL_SYMBOLS` target property exports all symbols
found in object files explicitly given to the linker.  However, the
linker may also find additional symbols in dependencies and copy them
into the linked binary (e.g. from `msvcrt.lib`).  Provide a way to
export an explicit list of such symbols by adding a `.def` file as a
source file.

Fixes: #16473
This commit is contained in:
Brad King
2017-03-13 11:54:30 -04:00
parent 21c4ec4ffe
commit 075f645409
15 changed files with 138 additions and 59 deletions
+9
View File
@@ -0,0 +1,9 @@
int split_dll_1(void)
{
return 0;
}
int split_dll_2(void)
{
return 0;
}