This is an archive of the discontinued LLVM Phabricator instance.

CMake: allow overriding CMAKE_CXX_VISIBILITY_PRESET
ClosedPublic

Authored by sugak on Jun 11 2021, 6:32 PM.

Details

Summary

This allows overriding the CMAKE_CXX_VISIBILITY_PRESET on the command line. For example, setting the value to default lets PIC LLVM static libraries be converted to DSOs, without the need to rebuild LLVM with BUILD_SHARED_LIBS=ON.

Diff Detail

Event Timeline

sugak created this revision.Jun 11 2021, 6:32 PM
sugak requested review of this revision.Jun 11 2021, 6:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 11 2021, 6:32 PM
sugak added a comment.Jun 14 2021, 4:46 PM

friendly ping

wenlei accepted this revision.Jun 15 2021, 11:52 AM

Makes sense to me to still allow overriding. Thanks for the change.

This revision is now accepted and ready to land.Jun 15 2021, 11:52 AM

This is blocking our internal adoption of llvm-12, going to commit on behalf of Igor now.

This revision was automatically updated to reflect the committed changes.