[libcxx-commits] [PATCH] D75243: [libc++] Build the dylib with C++17 to allow aligned new/delete

dmajor via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jul 22 15:00:59 PDT 2020


dmajor added a comment.

In our builds with the 10.12 SDK and MACOSX_DEPLOYMENT_TARGET of 10.11, this is producing

  [task 2020-07-22T21:52:27.615Z] /builds/worker/fetches/llvm-project/llvm/projects/libcxx/src/barrier.cpp:37:43: error: aligned allocation function of type 'void *(std::size_t, std::align_val_t)' is only available on macOS 10.14 or newer
  [task 2020-07-22T21:52:27.615Z]         __state = unique_ptr<__state_t[]>(new __state_t[__count]);
  [task 2020-07-22T21:52:27.615Z]                                           ^
  [task 2020-07-22T21:52:27.615Z] /builds/worker/fetches/llvm-project/llvm/projects/libcxx/src/barrier.cpp:37:43: note: if you supply your own aligned allocation functions, use -faligned-allocation to silence this diagnostic

Is that expected? How can I determine whether our builds supplies its own aligned allocation functions?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D75243





More information about the libcxx-commits mailing list