Skip to content

Commit

Permalink
fix wrong archive format
Browse files Browse the repository at this point in the history
  • Loading branch information
sphw committed Mar 31, 2024
1 parent b0f1550 commit cf45511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/static-lib.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _cc_static_library_impl(ctx):
ar_path = ar_path.replace("llvm-lib.exe", "llvm-ar.exe")

ctx.actions.run_shell(
command = "\"{0}\" rcs {1} {2} && echo -e 'create {1}\naddlib {1}\nsave\nend' | \"{0}\" -M".format(ar_path, output_lib.path, " ".join(lib_paths)),
command = "\"{0}\" rc --thin {1} {2} && echo -e 'create {1}\naddlib {1}\nsave\nend' | \"{0}\" -M".format(ar_path, output_lib.path, " ".join(lib_paths)),
inputs = libs + cc_toolchain.all_files.to_list(),
outputs = [output_lib],
mnemonic = "ArMerge",
Expand Down

0 comments on commit cf45511

Please sign in to comment.