phosek added a comment.

This is an alternative to D62154 <https://reviews.llvm.org/D62154>. With just 
the change to `HandleLLVMOptions.cmake`, we're seeing errors in Analysis 
plugins due to undefined symbols:

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

and

  bin/clang: symbol lookup error: ./lib/SampleAnalyzerPlugin.so: undefined 
symbol: 
_ZN5clang4ento15CheckerRegistry10addCheckerEPFvRNS0_14CheckerManagerEEPFbRKNS_11LangOptionsEEN4llvm9StringRefESC_SC_b

I'm not sure where those symbols are supposed to come from, but they're not 
part of Clang so those errors seem valid. Linking in dependencies 
unconditionally addresses those failures.

Note that I've been testing this in build of Clang that enables neither shared 
libraries nor `libLLVM.so`.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62174/new/

https://reviews.llvm.org/D62174



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to