llvm.org GIT mirror llvm / 010a40c
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 NAKAMURA Takumi 5 years ago
1 changed file(s) with 2 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
284284 } else if (Arg == "--cxxflags") {
285285 OS << ActiveIncludeOption << ' ' << LLVM_CXXFLAGS << '\n';
286286 } else if (Arg == "--ldflags") {
287 OS << "-L" << ActiveLibDir << ' ' << LLVM_LDFLAGS << '\n';
287 OS << "-L" << ActiveLibDir << ' ' << LLVM_LDFLAGS
288 << ' ' << LLVM_SYSTEM_LIBS << '\n';
288289 } else if (Arg == "--libs") {
289290 PrintLibs = true;
290291 } else if (Arg == "--libnames") {
358359 OS << ActiveLibDir << '/' << Lib;
359360 }
360361 }
361
362 // Print system libs in the next line.
363 // Assume LLVMSupport depends on system_libs.
364 // FIXME: LLVMBuild may take care of dependencies to system_libs.
365 if (PrintLibs)
366 OS << '\n' << LLVM_SYSTEM_LIBS;
367
368362 OS << '\n';
369363 } else if (!Components.empty()) {
370364 errs() << "llvm-config: error: components given, but unused\n\n";