[libcxx] When merging archives, build index even on Darwin

We always want to build the table of contents. Additionally, we also
set the flag to make the output deterministic which is already the
default for llvm-ar.

Differential Revision: https://reviews.llvm.org/D74108
This commit is contained in:
Petr Hosek 2020-02-05 19:42:18 -08:00
parent 69d2b67556
commit 603acd9626

View File

@ -143,10 +143,10 @@ def main():
if args.use_libtool:
files = [f for f in files if not f.startswith('__.SYMDEF')]
execute_command_verbose([libtool_exe, '-static', '-o', args.output] + files,
execute_command_verbose([libtool_exe, '-static', '-o', args.output, '-sD'] + files,
cwd=temp_directory_root, verbose=args.verbose)
else:
execute_command_verbose([ar_exe, 'rcs', args.output] + files,
execute_command_verbose([ar_exe, 'rcsD', args.output] + files,
cwd=temp_directory_root, verbose=args.verbose)