Issue 203049
Summary [lit] spirv-tools not registered when spirv-tools are built
Labels new issue
Assignees tcorringham
Reporter tcorringham
    The clang/Driver/spirv-tools-err.c test checks that the expected error is generated when the spirv-as and spirv-link are not found. To do this it sets an empty PATH. However, a more recent change (#178779) implicitly adds the llvm build directory to the path, so if the spirv tools are built then the tools will be found and the test will fail.
The test does use "UNSUPPORTED: spirv-tools" to skip the test when spirv tools are available, but the spirv-tools lit feature is not currently enabled when the tools are built (e.g. with -DLLVM_INCLUDE_SPIRV_TOOLS_TESTS). 
To resolve this clang/test/lit.cfg.py should set t he spirv-tools lit feature when the build of the tools is enabled. 
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to