Skip to content

[llvm] Enable rtti to solve linker error #8347

@MatthewSmit

Description

@MatthewSmit

Is your feature request related to a problem? Please describe.
When using llvm as a library, an application using llvm fails with a linker error, specifically:
CMakeFiles/SPIRVToLLVM.dir/SpirvJit.cpp.o:(.data.rel.ro._ZTIN4llvm9ErrorInfoINS_9ErrorListENS_13ErrorInfoBaseEEE[_ZTIN4llvm9ErrorInfoINS_9ErrorListENS_13ErrorInfoBaseEEE]+0x10): undefined reference to typeinfo for llvm::ErrorInfoBase

Proposed solution
Add -DLLVM_ENABLE_RTTI=1 to the portfile.

Metadata

Metadata

Assignees

Labels

category:port-featureThe issue is with a library, which is requesting new capabilities that didn’t exist

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions