-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When XCode changes for a rebuild if needed.
- Loading branch information
Showing
1 changed file
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
case `uname -o` in | ||
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
|
||
exit 1 | ||
"[0-9]+": | ||
version: "%(key)s" | ||
recipe: | | ||
exit 0 | ||
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
|
||
exit 1 |