# !bash if [[ $1 == 'debug' ]] then BuildTY='Debug' export LLVM_DIR=/home/ysui/llvm-4.0.0/llvm-4.0.0.dbg else BuildTY='Release' export LLVM_DIR=/home/ysui/llvm-4.0.0/llvm-4.0.0.obj fi export PATH=$LLVM_DIR/bin:$PATH Build=$BuildTY'-build' rm -rf build Release-build Debug-build mkdir $Build cd $Build if [[ $1 == 'debug' ]] then cmake -D CMAKE_BUILD_TYPE:STRING=Debug ../ else cmake ../ fi cmake ../ make -j4