aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Remarks
diff options
context:
space:
mode:
authorserge-sans-paille <sguelton@redhat.com>2020-10-09 18:41:21 +0200
committerserge-sans-paille <sguelton@redhat.com>2020-11-13 10:35:24 +0100
commit9218ff50f93085d0a16a974db28ca8f14bc66f64 (patch)
tree00618a75171e9b483b20315faefaec17641200e4 /llvm/lib/Remarks
parentb498303066a63a203d24f739b2d2e0e56dca70d1 (diff)
downloadllvm-9218ff50f93085d0a16a974db28ca8f14bc66f64.zip
llvm-9218ff50f93085d0a16a974db28ca8f14bc66f64.tar.gz
llvm-9218ff50f93085d0a16a974db28ca8f14bc66f64.tar.bz2
llvmbuildectomy - replace llvm-build by plain cmake
No longer rely on an external tool to build the llvm component layout. Instead, leverage the existing `add_llvm_componentlibrary` cmake function and introduce `add_llvm_component_group` to accurately describe component behavior. These function store extra properties in the created targets. These properties are processed once all components are defined to resolve library dependencies and produce the header expected by llvm-config. Differential Revision: https://reviews.llvm.org/D90848
Diffstat (limited to 'llvm/lib/Remarks')
-rw-r--r--llvm/lib/Remarks/CMakeLists.txt4
-rw-r--r--llvm/lib/Remarks/LLVMBuild.txt21
2 files changed, 4 insertions, 21 deletions
diff --git a/llvm/lib/Remarks/CMakeLists.txt b/llvm/lib/Remarks/CMakeLists.txt
index ec49e77..dd317ee 100644
--- a/llvm/lib/Remarks/CMakeLists.txt
+++ b/llvm/lib/Remarks/CMakeLists.txt
@@ -13,4 +13,8 @@ add_llvm_component_library(LLVMRemarks
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/Remarks
+
+ LINK_COMPONENTS
+ BitstreamReader
+ Support
)
diff --git a/llvm/lib/Remarks/LLVMBuild.txt b/llvm/lib/Remarks/LLVMBuild.txt
deleted file mode 100644
index 2df709b..0000000
--- a/llvm/lib/Remarks/LLVMBuild.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-;===- ./lib/Remarks/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 = Remarks
-parent = Libraries
-required_libraries = BitstreamReader Support