diff options
| author | serge-sans-paille <sguelton@redhat.com> | 2020-04-20 12:39:32 +0200 |
|---|---|---|
| committer | Tom Stellard <tstellar@redhat.com> | 2020-06-17 16:57:30 -0700 |
| commit | 5f510e51dd4e6de5987a162f232c514a4dc8b0e3 (patch) | |
| tree | f038eb3fcfc75e0c00b01ecfe021307d601b7e6f /llvm/lib/Extensions | |
| parent | 0c05269e0232d5eebfd835aa1401913b181031a3 (diff) | |
| download | bcm5719-llvm-5f510e51dd4e6de5987a162f232c514a4dc8b0e3.tar.gz bcm5719-llvm-5f510e51dd4e6de5987a162f232c514a4dc8b0e3.zip | |
Update compiler extension integration into the build system
The approach here is to create a new (empty) component, `Extensions', where all
statically compiled extensions dynamically register their dependencies. That way
we're more natively compatible with LLVMBuild and llvm-config.
Fixes: https://bugs.llvm.org/show_bug.cgi?id=44870
Differential Revision: https://reviews.llvm.org/D78192
(cherry picked from commit 8f766e382b77eef3102798b49e087d1e4804b984)
Diffstat (limited to 'llvm/lib/Extensions')
| -rw-r--r-- | llvm/lib/Extensions/CMakeLists.txt | 3 | ||||
| -rw-r--r-- | llvm/lib/Extensions/Extensions.cpp | 0 | ||||
| -rw-r--r-- | llvm/lib/Extensions/LLVMBuild.txt | 21 |
3 files changed, 24 insertions, 0 deletions
diff --git a/llvm/lib/Extensions/CMakeLists.txt b/llvm/lib/Extensions/CMakeLists.txt new file mode 100644 index 00000000000..701e9c4c0ba --- /dev/null +++ b/llvm/lib/Extensions/CMakeLists.txt @@ -0,0 +1,3 @@ +add_llvm_component_library(LLVMExtensions + Extensions.cpp +) diff --git a/llvm/lib/Extensions/Extensions.cpp b/llvm/lib/Extensions/Extensions.cpp new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/llvm/lib/Extensions/Extensions.cpp diff --git a/llvm/lib/Extensions/LLVMBuild.txt b/llvm/lib/Extensions/LLVMBuild.txt new file mode 100644 index 00000000000..2005830a4dd --- /dev/null +++ b/llvm/lib/Extensions/LLVMBuild.txt @@ -0,0 +1,21 @@ +;===- ./lib/Extensions/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 = Extensions +parent = Libraries +required_libraries = |

