Skip to content
This repository has been archived by the owner on Oct 22, 2020. It is now read-only.
Maik Klein edited this page Jun 16, 2018 · 1 revision

How do I build a cargo project?

Simply set the RUSTC environment variable to rlsl. env RUSTC=rlsl cargo build

I get a versioning conflict if I try to build the same cargo project with rustc and rlsl

This happens because rlsl will most likely use a different version of rustc than rustc itself. The easy workaround is to create a new target directory.

env RUSTC=rlsl CARGO_TARGET_DIR="spirv-target" cargo build