[all-commits] [llvm/llvm-project] 203c5a: [ORC] Link LLVMOrcShared against TargetParser
Farid Zakaria via All-commits
all-commits at lists.llvm.org
Wed Sep 16 11:04:24 PDT 2026
Branch: refs/heads/users/fmzakari/llvm-fix-shared
Home: https://github.com/llvm/llvm-project
Commit: 203c5ae5405cede8cda1626717ba501eac1a02e0
https://github.com/llvm/llvm-project/commit/203c5ae5405cede8cda1626717ba501eac1a02e0
Author: Farid Zakaria <fmzakari at meta.com>
Date: 2026-09-16 (Wed, 16 Sep 2026)
Changed paths:
M llvm/lib/ExecutionEngine/Orc/Shared/CMakeLists.txt
Log Message:
-----------
[ORC] Link LLVMOrcShared against TargetParser
Mangler::fromTriple() calls Triple::computeDataLayout(), which lives in
LLVMTargetParser, but LLVMOrcShared only lists Support as a link
component.
This goes unnoticed in a static build: the component is an archive, so
the reference is not resolved until the final executable link, where
LLVMTargetParser is present anyway. With BUILD_SHARED_LIBS=ON each
component becomes a shared library linked with -Wl,-z,defs, and linking
LLVMOrcShared itself fails:
ld.lld: error: undefined symbol:
llvm::Triple::computeDataLayout[abi:cxx11](llvm::StringRef) const
>>> referenced by Mangler.cpp:50
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list