mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-13 10:22:55 +01:00
da498591fc
Drop gcc b/c it takes too long to install via addon. Build only static/release, to save VMs. (No shared to debug.)
15 lines
505 B
Bash
15 lines
505 B
Bash
set -vex
|
|
|
|
wget https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-linux.zip
|
|
unzip -q ninja-linux.zip -d build
|
|
|
|
pip3 install meson
|
|
# /usr/bin/gcc is 4.6 always, but gcc-X.Y is available.
|
|
if [[ $CXX = g++ ]]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
|
|
# /usr/bin/clang has a conflict with gcc, so use clang-X.Y.
|
|
if [[ $CXX = clang++ ]]; then export CXX="clang++-3.5" CC="clang-3.5"; fi
|
|
echo ${PATH}
|
|
ls /usr/local
|
|
ls /usr/local/bin
|
|
export PATH="${PWD}"/build:/usr/local/bin:/usr/bin:${PATH}
|