Skip to content
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

Test hidden visibility default on gcc #5779

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mvieth
Copy link
Member

@mvieth mvieth commented Aug 2, 2023

No description provided.

@mvieth mvieth force-pushed the gcc_hidden_visibility branch 9 times, most recently from dd32d31 to 4276c3a Compare August 4, 2023 12:06
@mvieth mvieth force-pushed the gcc_hidden_visibility branch 6 times, most recently from eaab75c to a8517d7 Compare November 12, 2023 17:20
@larshg
Copy link
Contributor

larshg commented Dec 4, 2023

This would close #1913 FYI.

@mvieth mvieth force-pushed the gcc_hidden_visibility branch 2 times, most recently from f6767fb to 9f734b2 Compare January 9, 2024 19:54
@@ -121,6 +121,9 @@ if(CMAKE_COMPILER_IS_GNUCXX)
endif()
string(APPEND CMAKE_CXX_FLAGS " -Wall -Wextra -fno-strict-aliasing ${SSE_FLAGS} ${AVX_FLAGS}")
endif()
if(PCL_SYMBOL_VISIBILITY_HIDDEN)
string(APPEND CMAKE_CXX_FLAGS " -fvisibility=hidden -fvisibility-inlines-hidden")
Copy link

@Osyotr Osyotr Jan 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider setting these flags globally. CMake will figure out right options to pass to compilers.

set(CMAKE_CXX_VISIBILITY_PRESET hidden)
set(CMAKE_VISIBILITY_INLINES_HIDDEN ON)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestion, I will take a look at those CMake options when I find the time to continue this pull request.

@mvieth mvieth added the changelog: new feature Meta-information for changelog generation label Jan 27, 2024
@mvieth mvieth force-pushed the gcc_hidden_visibility branch 2 times, most recently from 16e3e28 to 572c341 Compare March 1, 2024 18:24
@mvieth mvieth force-pushed the gcc_hidden_visibility branch 2 times, most recently from 0e1c5a9 to 79cc27b Compare June 5, 2024 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: new feature Meta-information for changelog generation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants