File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -244,15 +244,12 @@ jobs:
244244
245245 - name : Crossbuild to iOS
246246 run : |
247- #brew install llvm
248- #export #PATH=/opt/homebrew/opt/llvm/bin:$PATH
249- # export #LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
250- export #CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
251- export CC=/Applications/Xcode_26.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
252- export CFLAGS="-O2 -unwindlib=none -Wno-macro-redefined -isysroot /Applications/Xcode_26.0.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.0.sdk -arch arm64 -miphoneos-version-min=10.0"
253- xcrun --sdk iphoneos --show-sdk-path
254- ls -l /Applications
255- make TARGET=ARMV8 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1 CROSS=1
247+ CC="$(xcrun --sdk iphoneos --find clang)"
248+ SDKROOT="$(xcrun --sdk iphoneos --show-sdk-path)"
249+ echo "CC=${CC}"
250+ echo "SDKROOT=${SDKROOT}"
251+ make TARGET=ARMV8 DYNAMIC_ARCH=1 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1 \
252+ CC="${CC}" CFLAGS="-O2 -Wno-macro-redefined -isysroot ${SDKROOT} -arch arm64 -miphoneos-version-min=10.0"
256253
257254 xbuild-ios32 :
258255 if : " github.repository == 'OpenMathLib/OpenBLAS'"
@@ -296,4 +293,3 @@ jobs:
296293 export AR=/opt/homebrew/share/android-ndk/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar
297294 export RANLIB=/opt/homebrew/share/android-ndk/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib
298295 make TARGET=ARMV7 ARM_SOFTFP_ABI=1 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1
299-
Original file line number Diff line number Diff line change @@ -716,14 +716,13 @@ fully working OpenBLAS for this platform.
716716
717717Go to the directory where you unpacked OpenBLAS,and enter the following commands:
718718```bash
719- CC="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
720-
719+ CC="$(xcrun --sdk iphoneos --find clang)"
721720SDKROOT="$(xcrun --sdk iphoneos --show-sdk-path)"
722- CFLAGS="-O2 -Wno-macro-redefined -isysroot $SDKROOT -arch arm64 -miphoneos-version-min=10 .0 "
723721
724- make TARGET=ARMV8 DYNAMIC_ARCH=1 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1
722+ make TARGET=ARMV8 DYNAMIC_ARCH=1 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1 \
723+ CC="${CC} " CFLAGS= "- O2 - Wno- macro- redefined - isysroot ${SDKROOT} - arch arm64 - miphoneos- version- min= 10 .0 "
725724```
726- Adjust `MIN_IOS_VERSION ` as necessary for your installation. E.g., change the version number
725+ Adjust `-miphoneos-version-min ` as necessary for your installation. E.g., change the version number
727726to the minimum iOS version you want to target and execute this file to build the library.
728727
729728### HarmonyOS
You can’t perform that action at this time.
0 commit comments