mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +00:00
Revert r197380, "llvm-config: Print SYSTEM_LIBS with --libs, instead of --ldflags."
I will introduce another flag, like --system-libs, later. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197583 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b7967ba237
commit
010a40c080
@ -285,7 +285,8 @@ int main(int argc, char **argv) {
|
|||||||
} else if (Arg == "--cxxflags") {
|
} else if (Arg == "--cxxflags") {
|
||||||
OS << ActiveIncludeOption << ' ' << LLVM_CXXFLAGS << '\n';
|
OS << ActiveIncludeOption << ' ' << LLVM_CXXFLAGS << '\n';
|
||||||
} else if (Arg == "--ldflags") {
|
} else if (Arg == "--ldflags") {
|
||||||
OS << "-L" << ActiveLibDir << ' ' << LLVM_LDFLAGS << '\n';
|
OS << "-L" << ActiveLibDir << ' ' << LLVM_LDFLAGS
|
||||||
|
<< ' ' << LLVM_SYSTEM_LIBS << '\n';
|
||||||
} else if (Arg == "--libs") {
|
} else if (Arg == "--libs") {
|
||||||
PrintLibs = true;
|
PrintLibs = true;
|
||||||
} else if (Arg == "--libnames") {
|
} else if (Arg == "--libnames") {
|
||||||
@ -359,13 +360,6 @@ int main(int argc, char **argv) {
|
|||||||
OS << ActiveLibDir << '/' << Lib;
|
OS << ActiveLibDir << '/' << Lib;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Print system libs in the next line.
|
|
||||||
// Assume LLVMSupport depends on system_libs.
|
|
||||||
// FIXME: LLVMBuild may take care of dependencies to system_libs.
|
|
||||||
if (PrintLibs)
|
|
||||||
OS << '\n' << LLVM_SYSTEM_LIBS;
|
|
||||||
|
|
||||||
OS << '\n';
|
OS << '\n';
|
||||||
} else if (!Components.empty()) {
|
} else if (!Components.empty()) {
|
||||||
errs() << "llvm-config: error: components given, but unused\n\n";
|
errs() << "llvm-config: error: components given, but unused\n\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user