github.com/igggame/nebulas-go@v2.1.0+incompatible/nbre/bin/nclang (about) 1 #!/bin/bash 2 NBRE_FLAGS="-nodefaultlibs -lc++ -lc++abi -lm -lc -lgcc_s -lgcc" 3 # Catch the case when we only want to compile; this helps us avoid some warnings: 4 if echo "$@" | egrep "(^-c | -c | -c$)" >/dev/null 2>&1; then 5 NBRE_FLAGS="" 6 fi 7 CUR_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" 8 9 $CUR_DIR/../lib_llvm/bin/clang++ -stdlib=libc++ "$@" $NBRE_FLAGS 10