Skip to content

Commit

Permalink
Uses lower-case for "ar x" files.
Browse files Browse the repository at this point in the history
llvm-ar for Darwin converts Runtime.o to runtime.o: https://github.com/tommie/v8go/actions/runs/7348608815/job/20007015873
  • Loading branch information
tommie committed Dec 28, 2023
1 parent 70a7832 commit a350c51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deps/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,11 @@ def convert_to_thin_ar(src_fn, dest_fn, dest_obj_dn):
# disjoint sets and use "ar N"...
ar_file_counts = {}
for ar_file in ar_files:
# At least llvm-ar (used for Darwin) seems to mangle the names
# to lowercase upon creation.
ar_file = ar_file.lower()
ar_file_counts[ar_file] = ar_file_counts.get(ar_file, 0) + 1

ar_file_groups = []
for ar_file, count in ar_file_counts.items():
if len(ar_file_groups) < count:
Expand Down

0 comments on commit a350c51

Please sign in to comment.