teavm/tests/compile-c-unix.sh
2019-05-08 17:36:46 +03:00

8 lines
208 B
Bash
Executable File

SOURCE_DIR=$(pwd)
BUILD_DIR=$SOURCE_DIR/build
mkdir -p $BUILD_DIR
pushd $BUILD_DIR >/dev/null && \
cmake -S $SOURCE_DIR -B . >/dev/null && \
make --quiet >/dev/null && \
popd >/dev/null && \
rm -rf $BUILD_DIR