[libc++] Build the dylib with -faligned-allocation
authorLouis Dionne <ldionne@apple.com>
Thu, 23 Jul 2020 15:05:47 +0000 (11:05 -0400)
committerLouis Dionne <ldionne@apple.com>
Thu, 23 Jul 2020 18:04:00 +0000 (14:04 -0400)
commit918ba933673a515240db867ce9467879ceb4da9f
treef27ffe4e010c4ab4bf40558bf6a0ad7388b8647c
parentdf441c90152caa338182012a889eff16bb2a64e7
[libc++] Build the dylib with -faligned-allocation

This avoids issues when building the dylib for deployment targets that
don't support aligned allocation, where Clang normally triggers an
error to warn users their code would break at runtime when back-deployed.
Since we're building the dylib itself, which contains the aligned
allocation functions, we don't want to trigger that error.

Differential Revision: https://reviews.llvm.org/D84418
libcxx/CMakeLists.txt