Allow rs2spirv_driver.sh working from any path relative to given input
rs2spirv_driver.sh used to require being invoked from the same directory
as the given RS source. The root cause was that it didn't trim the
enclosing directories of given source path, while llvm-rs-cc does, and
thus the rest of compilation stages fail to see the bitcode file from
llvm-rs-cc. This change aligns the path expectation of these tools.
Test: invoking rs2spirv_driver.sh from various paths relative to the
input file
Change-Id: I22aead2a645dc82434788bde01808dc69e35c978
1 file changed