Don't prepend the ar commands by a dash, not all ar implementations support that (llvm-ar doesn't).
Also pass the 's' option when creating the merged library, to create an index.
Differential D37134
[libc++] Use CMAKE_AR for merging static libraries mstorsjo on Aug 25 2017, 2:20 AM. Authored by
Details Don't prepend the ar commands by a dash, not all ar implementations support that (llvm-ar doesn't). Also pass the 's' option when creating the merged library, to create an index.
Diff Detail
Event TimelineComment Actions Ironically I think parts of this change should be moved into merge_archives.py.
OK, then we should modify merge_archives.py to support optionally specifying the ar executable.
Isn't this also just a bug in merge_archives.py? Comment Actions Hm, indeed, that's probably a better solution. I'll give that a go and see how it goes. Comment Actions LGTM, minus inline comments.
|