Asylo simulation backend build rules




sim_enclave(name, deps, kwargs)

Build rule for creating a simulated enclave shared object file.

A rule like cc_binary, but builds and provides name as a target that may be consumed as an enclave in Asylo.

Creates two targets: name: A binary that may be provided to an enclave loader’s enclaves. The underlying cc_binary which is reprovided as an enclave target. If name has a “.so” suffix, then it is replaced with “”.


name required.

The simulated enclave target name.

deps optional. default is []

Dependencies for the cc_binary

kwargs optional.

cc_binary arguments.