From d00990cc11fce25520b9dde416bb8cf50990e992 Mon Sep 17 00:00:00 2001 From: robert Date: Thu, 13 Jan 2022 19:05:00 +0000 Subject: [PATCH] add a dummy -t flag to llvm-ranlib to match binutils' ranlib's -t flag which is a no-op; ok millert@ --- gnu/llvm/llvm/tools/llvm-ar/llvm-ar.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gnu/llvm/llvm/tools/llvm-ar/llvm-ar.cpp b/gnu/llvm/llvm/tools/llvm-ar/llvm-ar.cpp index 0e1dce6bc2e..c2e553d9934 100644 --- a/gnu/llvm/llvm/tools/llvm-ar/llvm-ar.cpp +++ b/gnu/llvm/llvm/tools/llvm-ar/llvm-ar.cpp @@ -1242,8 +1242,12 @@ static int ranlib_main(int argc, char **argv) { } else if (arg.front() == 'v') { cl::PrintVersionMessage(); return 0; + } else if (arg.front() == 't') { + // GNU ranlib also supports a -t flag, but does nothing + // because it just returns true without touching the + // timestamp, so simulate the same behaviour. + return 0; } else { - // TODO: GNU ranlib also supports a -t flag fail("Invalid option: '-" + arg + "'"); } arg = arg.drop_front(1); -- 2.20.1