[PATCH] D53238: [Driver] Add -static= to unify -static-{libgcc,libstdc++}

Yu Ding via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 21 13:44:43 PDT 2020


Yu added a comment.
Herald added a subscriber: dang.

I accidentally come into this thread when searching for how to statically link to libc++/libc++abi. I'm really curious if this patch will or will not get merged. I'm really painful on using c++17 on ancient environment which does not have libc++/libc++ abi dynamic library. We have to remove `-stdlib=libc++` and manually add libc++.a/libc++abi.a to the object lists. That's pretty hacky for cmake users. It'll be really awesome if we can have this patch merged. Thanks guys!


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D53238/new/

https://reviews.llvm.org/D53238



More information about the cfe-commits mailing list