occlum/demos/hello_bazel/build_bazel_sample.sh
2023-11-07 16:46:58 +08:00

12 lines
332 B
Bash
Executable File

#!/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