run.sh 341 B

12345678910
  1. #!/usr/bin/env bash
  2. ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE:-$0}")" || exit; pwd)"
  3. bazel --nosystem_rc --nohome_rc build //:example
  4. if [[ "$OSTYPE" == "darwin"* ]]; then
  5. DYLD_LIBRARY_PATH="$ROOT_DIR/thirdparty/lib" "${ROOT_DIR}"/bazel-bin/example
  6. else
  7. LD_LIBRARY_PATH="$ROOT_DIR/thirdparty/lib" "${ROOT_DIR}"/bazel-bin/example
  8. fi