Upgrade bison to v2.7 for macOS builds on Travis-ci

[skip AppVeyor]
This is the minimum change to be able to use %destructor in
DataFilter.y, the same version is used for Windows builds.
This commit is contained in:
Alejandro Martinez
2022-10-24 14:05:47 -03:00
parent cfa767a854
commit 92ab04ac8a
2 changed files with 5 additions and 0 deletions

View File

@@ -19,6 +19,9 @@ rm -rf '/usr/local/include/c++'
## brew install --HEAD travis/libkml.rb
sudo chmod -R +w /usr/local
brew update
brew install bison@2.7
# GSL - install from source due to homebrew issues
curl -k -O https://ftp.gnu.org/gnu/gsl/gsl-2.6.tar.gz
tar xf gsl-2.6.tar.gz

View File

@@ -24,6 +24,8 @@ cd ..
cp qwt/qwtconfig.pri.in qwt/qwtconfig.pri
cp src/gcconfig.pri.in src/gcconfig.pri
# Bison
echo QMAKE_YACC=/usr/local/opt/bison@2.7/bin/bison >> src/gcconfig.pri
# Define GC version string, only for tagged builds
if [ -n "$TRAVIS_TAG" ]; then echo DEFINES += GC_VERSION=VERSION_STRING >> src/gcconfig.pri; fi
sed -i "" "s|#\(CONFIG += release.*\)|\1 static |" src/gcconfig.pri