[llvm] Add missing link component for Frontend offloading test (PR #151796)

Arvind Sudarsanam via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 1 21:38:42 PDT 2025


https://github.com/asudarsa created https://github.com/llvm/llvm-project/pull/151796

This change fixes one of the failures in https://github.com/llvm/llvm-project/pull/147321

/usr/bin/ld: unittests/Frontend/CMakeFiles/LLVMFrontendTests.dir/PropertySetRegistryTest.cpp.o: undefined reference to symbol '_ZN4llvm10offloading21writePropertiesToJSONERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES1_IS7_St7variantIJjNS_11SmallVectorIhLj0EEEEESt4lessIS7_ESaISt4pairIKS7_SB_EEESD_SaISE_ISF_SI_EEERNS_11raw_ostreamE'

Need to add a missing LLVM link component in CMakeLists.txt.

Thanks

>From 4f7063356f32f16cffcf095ea984376e57047cbb Mon Sep 17 00:00:00 2001
From: Arvind Sudarsanam <arvind.sudarsanam at intel.com>
Date: Fri, 1 Aug 2025 21:35:54 -0700
Subject: [PATCH] Add missing link component

Signed-off-by: Arvind Sudarsanam <arvind.sudarsanam at intel.com>
---
 llvm/unittests/Frontend/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/llvm/unittests/Frontend/CMakeLists.txt b/llvm/unittests/Frontend/CMakeLists.txt
index 4d238ecf6f640..cd7abb727735d 100644
--- a/llvm/unittests/Frontend/CMakeLists.txt
+++ b/llvm/unittests/Frontend/CMakeLists.txt
@@ -2,6 +2,7 @@ set(LLVM_LINK_COMPONENTS
   Analysis
   Core
   FrontendHLSL
+  FrontendOffloading
   FrontendOpenACC
   FrontendOpenMP
   Passes



More information about the llvm-commits mailing list