-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
base: master
Are you sure you want to change the base?
Conversation
dd32d31
to
4276c3a
Compare
4276c3a
to
9b1508d
Compare
eaab75c
to
a8517d7
Compare
a8517d7
to
cb713cc
Compare
This would close #1913 FYI. |
f6767fb
to
9f734b2
Compare
@@ -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") |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.
16e3e28
to
572c341
Compare
0e1c5a9
to
79cc27b
Compare
79cc27b
to
c2442d5
Compare
No description provided.