This matches how it is done for libcxx and libcxxabi. Differential Revision: https://reviews.llvm.org/D147633