Sha256: 5daf4a1865e7b49b0f2b114183094523f5a9a7fd06b589e36d7951f2cb1cec8c

Contents?: true

Size: 575 Bytes

Versions: 2

Compression:

Stored size: 575 Bytes

Contents

#!/bin/bash

build_results=()

function build_for {
  CC=$1
  CXX=$2
  BUILD_DIR=$CC

  mkdir $BUILD_DIR
  pushd $BUILD_DIR
  CC=$CC CXX=$CXX cmake ../..
  make
  build_results+=("$CC: $?")
  popd
}

if [[ -d builds ]]; then
  rm -rf builds
fi

mkdir builds
pushd builds

build_for clang-3.6 clang++-3.6
build_for gcc-5 g++-5
build_for clang clang++
build_for gcc-4.9 g++-4.9
build_for gcc-4.8 g++-4.8
build_for gcc-4.7 g++-4.7
build_for gcc-4.6 g++-4.6
build_for gcc-4.5 g++-4.5

popd

echo
echo "Result:"
for res in "${build_results[@]}"
do
    echo $res
done

echo "Done"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tree-sitter-0.1.0 ext/tree-sitter/tree-sitter/externals/bandit/cross_compile.sh
tree-sitter-0.0.1 ext/tree-sitter/tree-sitter/externals/bandit/cross_compile.sh