Skip to content

Commit 8c55da4

Browse files
authored
macOS build script fixes (#466)
1 parent 38191b8 commit 8c55da4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

platforms/macos/build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ if [ -n "$outdated_toolchain" ]; then
118118
printf '\nBuilding ld64 and strip...\n\n'
119119

120120
tapi_commit=640b4623929c923c0468143ff2a363a48665fa54
121-
rm -rf cctools-port-*
121+
rm -rf apple-libtapi-*
122122
wget -O- "https://github.com/tpoechtrager/apple-libtapi/archive/$tapi_commit.tar.gz" | tar -xz
123123

124124
cd "apple-libtapi-$tapi_commit"
@@ -284,13 +284,13 @@ mkdir -p ../ReMCPE/libexec
284284
REMCPE_TARGET='arm64-apple-macos11.0' \
285285
REMCPE_SDK="$arm64_sdk" \
286286
"$platformdir/macos-cc" \
287-
"$platformdir/arch.c" -o arch-arm64
287+
"$platformdir/arch.c" -Os -o arch-arm64
288288

289289
REMCPE_TARGET='unknown-apple-macos10.4' \
290290
REMCPE_SDK="$old_sdk" \
291291
"$platformdir/macos-cc" \
292292
-arch x86_64 -arch i386 \
293-
"$platformdir/arch.c" -o arch-x86
293+
"$platformdir/arch.c" -Os -o arch-x86
294294

295295
lipo -create arch-* -output arch
296296
mv arch ../ReMCPE/libexec/arch

0 commit comments

Comments
 (0)