#!/bin/bash set -e mkdir examples cd examples git clone https://github.com/bazelbuild/examples/ . git checkout 93564e1f1e7a3c39d6a94acee12b8d7b74de3491 cd cpp-tutorial/stage3 export CC=/opt/occlum/toolchains/gcc/bin/occlum-gcc export CXX=/opt/occlum/toolchains/gcc/bin/occlum-g++ bazel build --cxxopt=-std=c++11 //main:hello-world