8000 [libc++] Enable sized deallocation when building operator new shims o… · llvm/llvm-project@1a9591d · GitHub
[go: up one dir, main page]

Skip to content

Commit 1a9591d

Browse files
committed
[libc++] Enable sized deallocation when building operator new shims on Apple
This ensures that we are able to build the shims on compilers that enable sized deallocation by default and those that don't, regardless.
1 parent 3a5d776 commit 1a9591d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libcxx/utils/ci/apple-install-libcxx.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ for arch in ${architectures}; do
119119
step "Building shims to make libc++ compatible with the system libc++ on Apple platforms when running the tests"
120120
shims_library="${build_dir}/${arch}/apple-system-shims.a"
121121
# Note that this doesn't need to match the Standard version used to build the rest of the library.
122-
xcrun clang++ -c -std=c++2b -target ${target} "${llvm_root}/libcxxabi/src/vendor/apple/shims.cpp" -static -o "${shims_library}"
122+
# Also note that we explicitly enable sized deallocation when building the shims to ensure that we provide as
123+
# many symbols as possible.
124+
xcrun clang++ -c -std=c++2b -fsized-deallocation -target ${target} "${llvm_root}/libcxxabi/src/vendor/apple/shims.cpp" -static -o "${shims_library}"
123125
124126
step "Building libc++.dylib and libc++abi.dylib for architecture ${arch}"
125127
xcrun cmake -S "${llvm_root}/runtimes" \

0 commit comments

Comments
 (0)
0