This is an archive of the discontinued LLVM Phabricator instance.

[cmake] Revert part of r360991 "[Analysis] Only run plugins tests if plugins are actually enabled" that unilaterally disabled plugins
AbandonedPublic

Authored by hintonda on May 20 2019, 10:07 AM.

Details

Reviewers
phosek
beanz
Summary

This change makes is impossible to build plugins and test
them in the common case when doing a normal build and
BUILD_SHARED_LIBS and LLVM_BUILD_LLVM_DYLIB are both OFF, e.g., the
buildbots.

Event Timeline

hintonda created this revision.May 20 2019, 10:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 20 2019, 10:07 AM
Herald added a subscriber: mgorny. · View Herald Transcript

With this change, we're seeing failing tests in Clang:

error: 'error' diagnostics seen but not expected:
  (frontend): unable to load plugin './lib/SampleAnalyzerPlugin.so': './lib/SampleAnalyzerPlugin.so: undefined symbol: _ZN4llvm14FoldingSetBase6anchorEv'

I have a slightly larger patch that seems to address that and it also contains this one but I'm not sure if it's the right approach.

If we're going to land this change, then I'd argue for reverting D59464 as well.

hintonda abandoned this revision.May 21 2019, 7:20 AM

D62174 is a better solution.