Skip to content

Commit d7d1088

Browse files
committed
docs: fix iOS build script & use xcrun SDK path
1 parent c040d5e commit d7d1088

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

docs/install.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -712,11 +712,12 @@ fully working OpenBLAS for this platform.
712712
713713
Go to the directory where you unpacked OpenBLAS,and enter the following commands:
714714
```bash
715-
CC=/Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
715+
CC="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
716716
717-
CFLAGS= -O2 -Wno-macro-redefined -isysroot /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk -arch arm64 -miphoneos-version-min=10.0
717+
SDKROOT="$(xcrun --sdk iphoneos --show-sdk-path)"
718+
CFLAGS="-O2 -Wno-macro-redefined -isysroot $SDKROOT -arch arm64 -miphoneos-version-min=10.0"
718719
719-
make TARGET=ARMV8 DYNAMIC_ARCH=1 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1
720+
make libs TARGET=ARMV8 DYNAMIC_ARCH=1 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1
720721
```
721722
Adjust `MIN_IOS_VERSION` as necessary for your installation. E.g., change the version number
722723
to the minimum iOS version you want to target and execute this file to build the library.

0 commit comments

Comments
 (0)