Debian Codegraph @

crt/aws-c-compression/codebuild/common-posix.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 set -e
4
5 CMAKE_ARGS="$@"
6 BUILD_PATH="/tmp/buildsscip-shell filesystem . . `/tmp/builds`."
7 mkdirscip-shell system . . mkdir. -p $BUILD_PATH
8 INSTALL_PATH="$BUILD_PATH/install"
9 mkdirscip-shell system . . mkdir. -p $INSTALL_PATH
10
11 function install_libraryscip-shell shell shell-project 0.0.0 install_library(). {
12 pushd $BUILD_PATH
13 gitscip-shell system . . git. clone https://github.com/awslabs/$1.git
14 cd $1
15
16 if [scip-shell system . . `[`. -n "$2" ]; then
17 gitscip-shell system . . git. checkout $2
18 fi
19
20 cmakescip-shell system . . cmake. -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH -DCMAKE_PREFIX_PATH=$INSTALL_PATH -DENABLE_SANITIZERS=ON $CMAKE_ARGS ./
21 makescip-shell system . . make. install
22
23 popd
24 }
25
26 install_libraryscip-shell shell shell-project 0.0.0 install_library(). aws-c-common
27
28 if [scip-shell system . . `[`. "$CODEBUILD_SRC_DIR" ]; then
29 cd $CODEBUILD_SRC_DIR
30 fi
31
32 mkdirscip-shell system . . mkdir. build
33 cd build
34 cmakescip-shell system . . cmake. -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH -DCMAKE_PREFIX_PATH=$INSTALL_PATH -DENABLE_SANITIZERS=ON $CMAKE_ARGS ../
35 makescip-shell system . . make.
36
37 LSAN_OPTIONS=verbosity=1:log_threads=1 ctestscip-shell system . . ctest. --output-on-failure