Support flv fotmat (and work v8 with newer gcc)

This commit is contained in:
Oleg Korshul
2019-09-12 14:11:06 +03:00
parent 7d7b4b816f
commit 1e2b9dbc34
4 changed files with 24 additions and 11 deletions

View File

@ -11,11 +11,23 @@ fi
export PATH=`pwd`/depot_tools:"$PATH"
gclient
#detect gcc version
currentver="$(gcc -dumpversion)"
requiredver="6.0.0"
v8_version="6.0"
if [ "$(printf '%s\n' "$requiredver" "$currentver" | sort -V | head -n1)" = "$requiredver" ]
then
v8_version="7.0"
fi
echo "v8 version: $v8_version"
if [ ! -d "./v8" ]
then
fetch v8
cd v8
git checkout -b 6.0 -t branch-heads/6.0
git checkout -b $v8_version -t branch-heads/$v8_version
else
cd v8
fi