-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3.1-llvm-config.patch
25 lines (24 loc) · 986 Bytes
/
3.1-llvm-config.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- origsrc/llvm-3.1.src/tools/llvm-config/llvm-config.cpp 2013-12-05 09:41:03.214992500 +0900
+++ src/llvm-3.1.src/tools/llvm-config/llvm-config.cpp 2013-12-05 10:12:08.462285800 +0900
@@ -335,6 +335,10 @@
} else if (PrintLibFiles) {
OS << ActiveLibDir << '/' << Lib;
} else if (PrintLibs) {
+ // FIXME: Do not print modular libs until llvm-config is really fixed.
+ OS << "-lLLVM-" << PACKAGE_VERSION << '\n';
+ break;
+
// If this is a typical library name, include it using -l.
if (Lib.startswith("lib") && Lib.endswith(".a")) {
OS << "-l" << Lib.slice(3, Lib.size()-2);
@@ -347,8 +351,9 @@
}
OS << '\n';
} else if (!Components.empty()) {
- errs() << "llvm-config: error: components given, but unused\n\n";
- usage();
+ // FIXME: Do nothing until llvm-config is really fixed.
+ // errs() << "llvm-config: error: components given, but unused\n\n";
+ // usage();
}
return 0;