Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3ea0754

Browse files
authored
[libc++] Enable sized deallocation when building operator new shims on Apple (#134152)
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 dbe070e commit 3ea0754

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

+3-1
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)