Skip to content

Commit e5aebea

Browse files
authored
Merge pull request #5596 from moluopro/develop
docs: fix iOS build script & use xcrun SDK path
2 parents c040d5e + a514760 commit e5aebea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/install.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,9 +712,10 @@ 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
719720
make TARGET=ARMV8 DYNAMIC_ARCH=1 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1
720721
```

0 commit comments

Comments
 (0)