Skip to content

v5.0.x: Remove the use of [OPAL|OMPI|OSHMEM]_MODULE_DECLSPEC #10775

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

Merged

Conversation

jsquyres
Copy link
Member

@jsquyres jsquyres commented Sep 7, 2022

In native Microsoft Windows builds, there is difference in how MCA component struct symbols need to be exported compared to other symbols. The "MODULE_DECLSPEC" macros were for exporting MCA component struct symbols, and "DECLSPEC" macros were for all exporting all other symbols.

In other operating systems, there's no difference in how these two types of symbols are exported.

Once Open MPI stopped supporting native Microsoft Windows builds, there was no need to preserve the difference. This commit therefore does the following:

  • Removes all definitions of the "MODULE_DECLSPEC" macros
  • Converts all uses of the "MODULE_DECLSPEC" macros to "DECLSPEC"
  • Removes stale Microsoft Windows declarations in oshmem_config.h

Signed-off-by: Jeff Squyres jsquyres@cisco.com
(cherry picked from commit 17a1f97)

This is the v5.0.x PR for #10774

In native Microsoft Windows builds, there is difference in how MCA
component struct symbols need to be exported compared to other
symbols.  The "MODULE_DECLSPEC" macros were for exporting MCA
component struct symbols, and "DECLSPEC" macros were for all exporting
all other symbols.

In other operating systems, there's no difference in how these two
types of symbols are exported.

Once Open MPI stopped supporting native Microsoft Windows builds,
there was no need to preserve the difference.  This commit therefore
does the following:

- Removes all definitions of the "MODULE_DECLSPEC" macros
- Converts all uses of the "MODULE_DECLSPEC" macros to "DECLSPEC"
- Removes stale Microsoft Windows declarations in oshmem_config.h

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
(cherry picked from commit 17a1f97)
@awlauria awlauria merged commit e5e1e36 into open-mpi:v5.0.x Sep 9, 2022
@jsquyres jsquyres deleted the pr/v5.0.x/remove-module-declspec branch September 9, 2022 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants