aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-11-06 19:57:04 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-11-06 19:57:04 +0000
commit6ce1b75b4381e31ef3608d4cf985688ad4251f39 (patch)
tree3631ae46900cf8369bc0df7c9328b99c14a79179 /tools
parent51dc528e305125622fab3063c5670a188df1e43a (diff)
Revert "llvm-config-2: Switch to using real library dependency table." while I
investigate build failure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143888 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llvm-config-2/llvm-config.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/llvm-config-2/llvm-config.cpp b/tools/llvm-config-2/llvm-config.cpp
index ec0daad035..525f3992ac 100644
--- a/tools/llvm-config-2/llvm-config.cpp
+++ b/tools/llvm-config-2/llvm-config.cpp
@@ -43,7 +43,15 @@ using namespace llvm;
//
// Not all components define a library, we also use "library groups" as a way to
// create entries for pseudo groups like x86 or all-targets.
-#include "LibraryDependencies.inc"
+//
+// FIXME: Include real component table.
+struct AvailableComponent {
+ const char *Name;
+ const char *Library;
+ const char *RequiredLibraries[1];
+} AvailableComponents[1] = {
+ { "all", 0, { } }
+};
/// \brief Traverse a single component adding to the topological ordering in
/// \arg RequiredLibs.
@@ -256,6 +264,7 @@ int main(int argc, char **argv) {
} else if (Arg == "--libfiles") {
PrintLibFiles = true;
} else if (Arg == "--components") {
+ OS << "all";
for (unsigned j = 0; j != array_lengthof(AvailableComponents); ++j) {
OS << ' ';
OS << AvailableComponents[j].Name;