I will send an entry in docs/CommandGuide for review today.
llvm-svn: 242533
std::pair<StringRef, std::error_code> Result =
llvm::writeArchive(getOutputPath(&Args, Members[0]), Members,
/*WriteSymtab=*/true, object::Archive::K_GNU,
- /*Deterministic*/ true, /*Thin*/ false);
+ /*Deterministic*/ true, Args.hasArg(OPT_llvmlibthin));
if (Result.second) {
if (Result.first.empty())
def libpath: P<"libpath", "Object file search path">;
def out : P<"out", "Path to file to write output">;
+def llvmlibthin : F<"llvmlibthin">;
+
//==============================================================================
// The flags below do nothing. They are defined only for lib.exe compatibility.
//==============================================================================
--- /dev/null
+RUN: echo foo > %t
+
+RUN: llvm-lib -out:%t.a %t
+RUN: FileCheck --check-prefix=FAT %s < %t.a
+FAT: !<arch>
+
+RUN: llvm-lib -out:%t.thin.a -llvmlibthin %t
+RUN: FileCheck --check-prefix=THIN %s < %t.thin.a
+THIN: !<thin>