[PATCH] D70416: [Driver] Make -static-libgcc imply static libunwind

2019-11-18 Thread Josh Kunz via Phabricator via cfe-commits
jkz created this revision. jkz added reviewers: saugustine, sivachandra. Herald added a project: clang. In the GNU toolchain, `-static-libgcc` implies that the unwindlib will be linked statically. However, when `--unwindlib=libunwind`, this flag is ignored, and a bare `-lunwind` is added to the

[PATCH] D70416: [Driver] Make -static-libgcc imply static libunwind

2019-11-20 Thread Josh Kunz via Phabricator via cfe-commits
jkz added a comment. In D70416#1750978 , @joerg wrote: > This is normally done by using `-Bstatic`/`-Bdynamic` around the library. See > `tools::addOpenMPRuntime`. `-Bstatic`/`-Bdynamic` wrapping does seem to be more common, but that will change the li