occlum/demos/hello_bazel/build_bazel_sample.sh
Tate, Hongliang Tian f9376ec4ba Polish the demos
1. Rename demo/ to demos/
2. Add demos/README.md
2019-10-19 02:04:13 +00:00

11 lines
306 B
Bash
Executable File

#!/bin/bash
set -e
mkdir examples
cd examples
git clone https://github.com/bazelbuild/examples/ .
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 --copt=-fPIC --linkopt=-pie //main:hello-world