[libcxx-commits] [PATCH] D84418: [libc++] Build the dylib with -faligned-allocation
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jul 23 11:04:09 PDT 2020
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rG918ba933673a: [libc++] Build the dylib with -faligned-allocation (authored by ldionne).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84418/new/
https://reviews.llvm.org/D84418
Files:
libcxx/CMakeLists.txt
Index: libcxx/CMakeLists.txt
===================================================================
--- libcxx/CMakeLists.txt
+++ libcxx/CMakeLists.txt
@@ -526,6 +526,11 @@
CXX_STANDARD_REQUIRED YES
CXX_EXTENSIONS NO)
+ # When building the dylib, don't warn for unavailable aligned allocation
+ # functions based on the deployment target -- they are always available
+ # because they are provided by the dylib itself.
+ target_add_compile_flags_if_supported(${target} PRIVATE -faligned-allocation)
+
# On all systems the system c++ standard library headers need to be excluded.
# MSVC only has -X, which disables all default includes; including the crt.
# Thus, we do nothing and hope we don't accidentally include any of the C++
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84418.280202.patch
Type: text/x-patch
Size: 752 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200723/4635537d/attachment.bin>
More information about the libcxx-commits
mailing list