This is an archive of the discontinued LLVM Phabricator instance.

[clang][pseudo] Add missing Support lib to cxx
ClosedPublic

Authored by DavidSpickett on Jun 6 2022, 3:01 AM.

Details

Reviewers
sammccall
MaskRay
Summary

Without this the following build config fails.

cmake ../llvm-project/llvm -DCMAKE_BUILD_TYPE=Debug \
  -DLLVM_TARGETS_TO_BUILD=X86 -DBUILD_SHARED_LIBS=ON \
  -DLLVM_APPEND_VC_REV=OFF -DLLVM_ENABLE_PROJECTS="lldb;clang;clang-tools-extra" \
  -G Ninja

With:

ld.lld: error: undefined symbol: llvm::EnableABIBreakingChecks
>>> referenced by CXX.cpp
>>>               tools/clang/tools/extra/pseudo/lib/cxx/CMakeFiles/obj.clangPseudoCXX.dir/CXX.cpp.o:(llvm::VerifyEnableABIBreakingChecks)

Diff Detail

Event Timeline

DavidSpickett created this revision.Jun 6 2022, 3:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 6 2022, 3:01 AM
DavidSpickett requested review of this revision.Jun 6 2022, 3:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 6 2022, 3:01 AM
DavidSpickett edited the summary of this revision. (Show Details)Jun 6 2022, 3:02 AM
DavidSpickett added reviewers: sammccall, MaskRay.

I'm basing this on what psuedo/lib/grammar does, so I'm not totally sure this is the place to fix it.

DBUILD_SHARED_LIBS being the key setting in the config that causes the issue.

MaskRay accepted this revision.Jun 8 2022, 6:55 PM

Thanks! Obsoleted by D127269

This revision is now accepted and ready to land.Jun 8 2022, 6:55 PM
MaskRay closed this revision.Jun 8 2022, 6:55 PM