aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LibDriver
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/LibDriver')
-rw-r--r--llvm/lib/LibDriver/LibDriver.cpp2
-rw-r--r--llvm/lib/LibDriver/Options.td2
2 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/LibDriver/LibDriver.cpp b/llvm/lib/LibDriver/LibDriver.cpp
index 17680e3..b0e704d 100644
--- a/llvm/lib/LibDriver/LibDriver.cpp
+++ b/llvm/lib/LibDriver/LibDriver.cpp
@@ -141,7 +141,7 @@ int llvm::libDriverMain(llvm::ArrayRef<const char*> ArgsArr) {
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())
diff --git a/llvm/lib/LibDriver/Options.td b/llvm/lib/LibDriver/Options.td
index 0aa1aff..5a56ef7 100644
--- a/llvm/lib/LibDriver/Options.td
+++ b/llvm/lib/LibDriver/Options.td
@@ -12,6 +12,8 @@ class P<string name, string help> :
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.
//==============================================================================