Skip to content

Commit

Permalink
For #1250, Not support macOS 10.14
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Nov 11, 2018
1 parent 99aa249 commit 99430d2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions trunk/auto/options.sh
Original file line number Diff line number Diff line change
Expand Up @@ -921,5 +921,15 @@ function check_option_conflicts() {
if [ $__check_ok = NO ]; then
exit 1;
fi

if [[ $SRS_OSX == YES ]]; then
macOSVersion=`sw_vers -productVersion`
macOSVersionMajor=`echo $macOSVersion|awk -F '.' '{print $1}'`
macOSVersionMinor=`echo $macOSVersion|awk -F '.' '{print $2}'`
if [[ $macOSVersionMajor -ge 10 && $macOSVersionMinor -ge 14 ]]; then
echo "macOS $macOSVersion is not supported, read https://github.com/ossrs/srs/issues/1250"
exit -1
fi
fi
}
check_option_conflicts

0 comments on commit 99430d2

Please sign in to comment.