-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,25 @@ | ||
package: Xcode | ||
version: "1.0" | ||
system_requirement_missing: | | ||
Please make sure you install Xcode and the command line tools using xcode-select --install | ||
system_requirement: "(osx.*)" | ||
system_requirement_check: | | ||
prefer_system: ".*" | ||
prefer_system_check: | | ||
# In case we are not on Darwin, this should not be included | ||
Check notice on line 5 in xcode.sh GitHub Actions / alidistlint
|
||
case `uname -o` in | ||
Check notice on line 6 in xcode.sh GitHub Actions / alidistlint
|
||
Darwin) ;; | ||
*) echo "alibuild_system_replace: unsupported" ;; | ||
esac | ||
xcode-select -p && echo '#include <AvailabilityMacros.h>' | clang++ -x c++ - -c -o /dev/null | ||
XCODE_VERSION="$(xcode-select -v | sed -e 's/[^0-9]//g')" | ||
echo "alibuild_system_replace: ${XCODE_VERSION}" | ||
prefer_system_replacement_specs: | ||
unsupported: | ||
version: "unsupported" | ||
recipe: | | ||
echo "XCode not supported on $(uname -o). Please check your dependencies." | ||
Check notice on line 17 in xcode.sh GitHub Actions / alidistlint
Check notice on line 17 in xcode.sh GitHub Actions / alidistlint
Check notice on line 17 in xcode.sh GitHub Actions / alidistlint
|
||
exit 1 | ||
"[0-9]+": | ||
version: "%(key)s" | ||
Check failure on line 20 in xcode.sh GitHub Actions / alidistlint
|
||
recipe: | | ||
exit 0 | ||
Check notice on line 22 in xcode.sh GitHub Actions / alidistlint
Check notice on line 22 in xcode.sh GitHub Actions / alidistlint
Check notice on line 22 in xcode.sh GitHub Actions / alidistlint
|
||
--- | ||
echo "Please make sure you install Xcode and the command line tools using xcode-select --install." | ||
Check notice on line 24 in xcode.sh GitHub Actions / alidistlint
Check notice on line 24 in xcode.sh GitHub Actions / alidistlint
Check notice on line 24 in xcode.sh GitHub Actions / alidistlint
|
||
exit 1 |