File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -3091,11 +3091,11 @@ publish_sdk () { #
3091
3091
git --git-dir=" $sdk64 " /usr/src/build-extra/.git push origin " $tag "
3092
3092
}
3093
3093
3094
- create_sdk_artifact () { # [--out=<directory>] [--git-sdk=<directory>] [--architecture=(x86_64|i686|aarch64)] [--bitness=(32|64)] [--force] <name>
3094
+ create_sdk_artifact () { # [--out=<directory>] [--git-sdk=<directory>] [--architecture=(x86_64|i686|aarch64|auto )] [--bitness=(32|64)] [--force] <name>
3095
3095
git_sdk_path=/
3096
3096
output_path=
3097
3097
force=
3098
- architecture=
3098
+ architecture=auto
3099
3099
bitness=
3100
3100
keep_worktree=
3101
3101
while case " $1 " in
@@ -3166,6 +3166,20 @@ create_sdk_artifact () { # [--out=<directory>] [--git-sdk=<directory>] [--archit
3166
3166
;;
3167
3167
*) die " Unhandled bitness: %s\n " " $bitness " ;;
3168
3168
esac
3169
+ elif test auto = " $architecture "
3170
+ then
3171
+ if git -C " $git_sdk_path " rev-parse --quiet --verify HEAD:clangarm64 2>/dev/null
3172
+ then
3173
+ architecture=aarch64
3174
+ elif git -C " $git_sdk_path " rev-parse --quiet --verify HEAD:usr/i686-pc-msys 2>/dev/null
3175
+ then
3176
+ architecture=i686
3177
+ elif git -C " $git_sdk_path " rev-parse --quiet --verify HEAD:usr/x86_64-pc-msys 2>/dev/null
3178
+ then
3179
+ architecture=x86_64
3180
+ else
3181
+ die " ' %s' is neither 32-bit nor 64-bit SDK? ! ? " " $git_sdk_path "
3182
+ fi
3169
3183
elif test -z " $architecture "
3170
3184
then
3171
3185
die " Either --architecture or --bitness must be provided for this function to work."
@@ -3191,7 +3205,7 @@ create_sdk_artifact () { # [--out=<directory>] [--git-sdk=<directory>] [--archit
3191
3205
;;
3192
3206
*) die " Unhandled architecture: %s\n " " $architecture " ;;
3193
3207
esac
3194
-
3208
+
3195
3209
mode=
3196
3210
case " $1 " in
3197
3211
minimal|git-sdk-minimal) mode=minimal-sdk;;
You can’t perform that action at this time.
0 commit comments