File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -351,6 +351,8 @@ parseArgs()
351351
352352 -macossilicon)
353353 BUILD_MACOS_SILICON=1
354+ ;;
355+
354356 -mac-catalyst)
355357 BUILD_MAC_CATALYST=1
356358 ;;
@@ -466,6 +468,11 @@ parseArgs()
466468 --macos-silicon-archs)
467469 if [ -n " $2 " ]; then
468470 CUSTOM_MACOS_SILICON_ARCHS=$2
471+ else
472+ missingParameter " $1 "
473+ fi
474+ ;;
475+
469476 --mac-catalyst-sdk)
470477 if [ -n " $2 " ]; then
471478 MAC_CATALYST_SDK_VERSION=$2
@@ -566,6 +573,8 @@ parseArgs()
566573
567574 if [[ " ${# CUSTOM_MACOS_SILICON_ARCHS[@]} " -gt 0 ]]; then
568575 read -ra MACOS_SILICON_ARCHS <<< " ${CUSTOM_MACOS_SILICON_ARCHS[@]}"
576+ fi
577+
569578 if [[ " ${# CUSTOM_MAC_CATALYST_ARCHS[@]} " -gt 0 ]]; then
570579 read -ra MAC_CATALYST_ARCHS <<< " ${CUSTOM_MAC_CATALYST_ARCHS[@]}"
571580 fi
@@ -764,6 +773,7 @@ using darwin : $COMPILER_VERSION~macossilicon
764773 <cxxflags>"$CXX_FLAGS "
765774 <linkflags>"$LD_FLAGS "
766775 <compileflags>"$OTHER_FLAGS ${MACOS_SILICON_ARCH_FLAGS[*]} $EXTRA_MACOS_SILICON_FLAGS -isysroot $MACOS_SILICON_SDK_PATH " -target arm64-apple-macos$MIN_MACOS_SILICON_VERSION
776+ ;
767777using darwin : $COMPILER_VERSION ~maccatalyst
768778: $COMPILER
769779: <architecture>x86
@@ -1057,6 +1067,7 @@ scrunchAllLibsTogetherInOneLibPerPlatform()
10571067 # macOS Silicon
10581068 for ARCH in " ${MACOS_SILICON_ARCHS[@]} " ; do
10591069 mkdir -p " $MACOS_SILICON_BUILD_DIR /$ARCH /obj"
1070+ done
10601071 fi
10611072 if [[ -n $BUILD_MAC_CATALYST ]]; then
10621073 # Mac Catalyst
You can’t perform that action at this time.
0 commit comments