Skip to content

Commit 97f50ed

Browse files
authored
[SYCL] Fix shared library build (#18688)
Manually verified the fix, error seen [here](https://github.com/intel/llvm/actions/runs/15280153119/job/42976816882), fix [here](https://github.com/intel/llvm/actions/runs/15283845466). ``` /usr/bin/ld: lib/SYCLPostLink/CMakeFiles/LLVMSYCLPostLink.dir/ESIMDPostSplitProcessing.cpp.o: in function `llvm::sycl::lowerESIMDConstructs(llvm::module_split::ModuleDesc&, bool, bool)': ESIMDPostSplitProcessing.cpp:(.text._ZN4llvm4sycl20lowerESIMDConstructsERNS_12module_split10ModuleDescEbb+0xb67): undefined reference to `llvm::SROAPass::SROAPass(llvm::SROAOptions)' /usr/bin/ld: ESIMDPostSplitProcessing.cpp:(.text._ZN4llvm4sycl20lowerESIMDConstructsERNS_12module_split10ModuleDescEbb+0xceb): undefined reference to `llvm::SROAPass::SROAPass(llvm::SROAOptions)' /usr/bin/ld: ESIMDPostSplitProcessing.cpp:(.text._ZN4llvm4sycl20lowerESIMDConstructsERNS_12module_split10ModuleDescEbb+0xd8a): undefined reference to `llvm::InstCombinePass::InstCombinePass(llvm::InstCombineOptions)' /usr/bin/ld: ESIMDPostSplitProcessing.cpp:(.text._ZN4llvm4sycl20lowerESIMDConstructsERNS_12module_split10ModuleDescEbb+0x10f6): undefined reference to `llvm::SROAPass::SROAPass(llvm::SROAOptions)' /usr/bin/ld: ESIMDPostSplitProcessing.cpp:(.text._ZN4llvm4sycl20lowerESIMDConstructsERNS_12module_split10ModuleDescEbb+0x1182): undefined reference to `llvm::InstCombinePass::InstCombinePass(llvm::InstCombineOptions)' ``` Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
1 parent a2a5752 commit 97f50ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/SYCLPostLink/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ add_llvm_component_library(LLVMSYCLPostLink
2222
BitWriter
2323
Core
2424
Demangle
25+
InstCombine
2526
IRPrinter
2627
Passes
28+
ScalarOpts
2729
Support
2830
ipo
2931
)

0 commit comments

Comments
 (0)