#!/bin/sh | |
# Usually, manually running build_clcore.sh shouldn't be needed. build_clcore.mk should | |
# kick in automatically during Android build process. | |
# Generate rs_cl.bc | |
# ================= | |
scriptc_path=../../../../base/libs/rs/scriptc | |
clang -I${scriptc_path} -c -O3 rs_cl.c -emit-llvm -o rs_cl.bc | |
# Generate rs_core.bc | |
# =================== | |
clang -I${scriptc_path} -c -O3 rs_core.c -emit-llvm -o rs_core.bc | |
# Link everything together | |
# ======================== | |
llvm-link rs_cl.bc rs_core.bc -o libclcore.bc |