github.com/igggame/nebulas-go@v2.1.0+incompatible/nbre/3rd_party/nebclang (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  # Use -stdlib=libc++ w/ clang built from source; otherwise use -I/usr/local/include/c++/v1
    10  $CUR_DIR/llvm-lib/bin/clang++ -stdlib=libc++ "$@" $NBRE_LFLAGS
    11  
    12  #$CUR_DIR/llvm-lib/bin/clang++  "$@" $NBRE_FLAGS