darwin.dyld: drop x86_64-darwin support

This commit is contained in:
Emily 2026-02-18 04:56:56 +00:00
commit 08b44da127

View file

@ -35,13 +35,8 @@ let
'${Libc}/include/_bounds.h'
mkdir -p "$out/include/System"
for dir in arm i386 machine; do
mkdir -p "$out/include/$dir"
for file in '${xnu}/osfmk/'$dir/*; do
name=$(basename "$file")
# Skip copying `endian.h` because it conflicts with the SDK, breaking the build on x86_64-darwin.
test "$name" != endian.h && cp -r "$file" "$out/include/$dir/$name"
done
for dir in arm machine; do
cp -r '${xnu}/osfmk/'$dir "$out/include/$dir"
ln -s "$out/include/$dir" "$out/include/System/$dir"
done