Compiling bsnes_hd core for ios-arm64

I decided to dip my toe into doing the compiles myself tonight and have hit one snag I was hoping you all could clear up for me.

The bsnes_hd core errors out like so when trying to compile it:

#libretro-super> ./libretro-build-ios-arm64.sh bsnes_hd

uname: illegal option -- o

usage: uname [-amnprsv]

CC = cc -arch arm64 -marm -miphoneos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk

CXX = c++ -arch arm64 -marm -miphoneos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk

CXX11 = clang++ -std=c++11 -stdlib=libc++ -arch arm64 -marm -miphoneos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk

CXX17 = clang++ -std=c++17 -stdlib=libc++ -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk

STRIP =

Compiler: CC="cc -arch arm64 -marm -miphoneos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk" CXX="c++ -arch arm64 -marm -miphoneos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk"

=== iOS ==

ios-arm64

ios-arm64

=== **bsnes HD**

Building bsnes_hd...

cd "/Volumes/Storage/RetroArch/libretro-super/libretro-bsnes_hd/bsnes"

make -f GNUmakefile platform="ios-arm64" -j7 compiler="clang++ -std=c++17 -stdlib=libc++ -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk" target="libretro" clean

GNUmakefile:46: *** "unsupported platform". Stop.

make -f GNUmakefile platform="ios-arm64" -j7 CC="cc -arch arm64 -marm -miphoneos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk" CXX="c++ -arch arm64 -marm -miphoneos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk" compiler="clang++ -std=c++17 -stdlib=libc++ -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk" target="libretro"

GNUmakefile:46: *** "unsupported platform". Stop.

cp "out/bsnes_hd_libretro_ios.dylib" "/Volumes/Storage/RetroArch/libretro-super/dist/ios-arm64/bsnes_hd_libretro_ios.dylib"

cp: out/bsnes_hd_libretro_ios.dylib: No such file or directory

1 core(s) failed:

bsnes_hd

Any idea what I’m missing. I note that @Weedy_Weed_Smoker @harakari2 and @jet082 have bsnes_hd compiling just fine for them, but I am obviously missing something.

Xcode 11.1, iOS 13.1 SDK, OSX 10.14

I have done some work to figure out how the compile is being called and there is indeed no way for “platform=ios-arm64” to make it through the bsnes GNUMakefile, so I just don’t understand how people are getting this thing to compile with the currently committed code.