RFC fix import/export MSVC data variables
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | buildtools: ignore exports for MSVCbuildtools/ lib/ | +11 | 0 replies | |
| 2/3 | eal: import and export data variables for MSVClib/ lib/ lib/ +4 more | +41 | 0 replies | |
| 3/3 | ethdev: import and export data variables for MSVClib/ lib/ lib/ +1 more | +28 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] RFC fix import/export MSVC data variables
MSVC requires that data variables within DPDK to be explicitly exported and when consumed by applications be explicitly imported. Further, MSVC and the Microsoft Linker need additional information when exporting data variables that are thread local storage that cannot be conveyed through the version.map -> exports.def generation. The generation script has been updated to allow data exports to be excluded during a build with MSVC where the intent is to export them via the macros.
This RFC series proposes per-library macro that can be used to mark the data variables for export so that when processed appropriate declaration of import or export is achieved either within the dpdk build or by a consuming application.
I have only supplied an example series that uses the macro on a handful of variables to demonstrate their use, after feedback on the RFC all libs will have whatever method is arrived at applied to exported data variables.
Thanks!
Tyler Retzlaff (3):
buildtools: ignore exports for MSVC
eal: import and export data variables for MSVC
ethdev: import and export data variables for MSVC
buildtools/map_to_win.py | 13 +++++++++---- lib/eal/include/meson.build | 1 + lib/eal/include/rte_common.h | 8 ++++++++ lib/eal/include/rte_eal.h | 2 ++ lib/eal/include/rte_eal_export.h | 23 +++++++++++++++++++++++ lib/eal/include/rte_errno.h | 2 ++ lib/eal/version.map | 6 +++--- lib/ethdev/meson.build | 1 + lib/ethdev/rte_ethdev_core.h | 3 +++ lib/ethdev/rte_ethdev_export.h | 23 +++++++++++++++++++++++ lib/ethdev/version.map | 2 +- lib/meson.build | 6 ++++-- 12 files changed, 80 insertions(+), 10 deletions(-) create mode 100644 lib/eal/include/rte_eal_export.h create mode 100644 lib/ethdev/rte_ethdev_export.h
Signature · 1 line
1.8.3.1