[llvm] b662576 - [llvm-debuginfo-analyzer] Fix linking errors in buildbots.
Carlos Alberto Enciso via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 18 05:07:46 PDT 2022
Author: Carlos Alberto Enciso
Date: 2022-10-18T13:05:46+01:00
New Revision: b6625765cf0ce4642e2e9fc7e82cd28fbb500033
URL: https://github.com/llvm/llvm-project/commit/b6625765cf0ce4642e2e9fc7e82cd28fbb500033
DIFF: https://github.com/llvm/llvm-project/commit/b6625765cf0ce4642e2e9fc7e82cd28fbb500033.diff
LOG: [llvm-debuginfo-analyzer] Fix linking errors in buildbots.
The tool used the 'old' LLVM build information (LLVMBuild.txt),
which caused linking errors in:
https://lab.llvm.org/buildbot/#/builders/177/builds/10125
https://lab.llvm.org/buildbot/#/builders/196/builds/19699
Update the CMake configuration to support the new LLVM build
system that uses only CMakeLists.txt.
Reviewed By: jryans
Differential Revision: https://reviews.llvm.org/D136159
Added:
Modified:
llvm/lib/DebugInfo/LogicalView/CMakeLists.txt
Removed:
llvm/lib/DebugInfo/LogicalView/LLVMBuild.txt
################################################################################
diff --git a/llvm/lib/DebugInfo/LogicalView/CMakeLists.txt b/llvm/lib/DebugInfo/LogicalView/CMakeLists.txt
index dbdfa031cbcc9..783b62c275abc 100644
--- a/llvm/lib/DebugInfo/LogicalView/CMakeLists.txt
+++ b/llvm/lib/DebugInfo/LogicalView/CMakeLists.txt
@@ -1,14 +1,3 @@
-set(LLVM_LINK_COMPONENTS
- BinaryFormat
- DebugInfoDWARF
- DebugInfoCodeView
- DebugInfoPDB
- Demangle
- MC
- Object
- Support
- )
-
macro(add_lv_impl_folder group)
list(APPEND LV_IMPL_SOURCES ${ARGN})
source_group(${group} FILES ${ARGN})
@@ -23,9 +12,14 @@ list(APPEND LIBLV_ADDITIONAL_HEADER_DIRS
"${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/LogicalView/Core"
)
-add_llvm_library(LLVMDebugInfoLogicalView
+add_llvm_component_library(LLVMDebugInfoLogicalView
${LV_IMPL_SOURCES}
ADDITIONAL_HEADER_DIRS
${LIBLV_ADDITIONAL_HEADER_DIRS}
+
+ LINK_COMPONENTS
+ Object
+ MC
+ Support
)
diff --git a/llvm/lib/DebugInfo/LogicalView/LLVMBuild.txt b/llvm/lib/DebugInfo/LogicalView/LLVMBuild.txt
deleted file mode 100644
index 11037f03daef0..0000000000000
--- a/llvm/lib/DebugInfo/LogicalView/LLVMBuild.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-;===- ./lib/DebugInfo/LogicalView/LLVMBuild.txt ----------------*- Conf -*--===;
-;
-; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-; See https://llvm.org/LICENSE.txt for license information.
-; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-;
-;===------------------------------------------------------------------------===;
-;
-; This is an LLVMBuild description file for the components in this subdirectory.
-;
-; For more information on the LLVMBuild system, please see:
-;
-; http://llvm.org/docs/LLVMBuild.html
-;
-;===------------------------------------------------------------------------===;
-
-[component_0]
-type = Library
-name = DebugInfoLogicalView
-parent = DebugInfo
-required_libraries = Object Support DebugInfoDWARF DebugInfoCodeView DebugInfoPDB
More information about the llvm-commits
mailing list