llvm-project
cb96a3ed - [clang][test] Move offload tools tests to clang/test/OffloadTools (#198434)

Commit
104 days ago
[clang][test] Move offload tools tests to clang/test/OffloadTools (#198434) Tests for clang-offload-bundler, clang-linker-wrapper, clang-nvlink-wrapper, and clang-sycl-linker were scattered across clang/test/Driver/ and clang/test/Tooling/. Neither location was appropriate: Driver/ is for testing the compiler driver, and Tooling/ is for testing the LibTooling infrastructure. Move them to clang/test/OffloadTools/ with one subdirectory per tool, following the convention used by llvm/test/tools/. The tool-name prefix is dropped from filenames since the containing directory already identifies the tool. The spirv-tools feature/substitution setup is carried over from Tooling's lit.local.cfg into a new lit.local.cfg in clang-linker-wrapper/, since the parent clang/test/lit.cfg.py does not set up that feature. The dead spirv-tools block is removed from Tooling/lit.local.cfg now that no tests there depend on it. `clang-linker-wrapper-spirv.cpp` was relying on libomp in the environment. It is now rewritten to run the `clang-linker-wrapper` directly rather than going through the driver and added stub symbols allow avoiding linking against OpenMP runtime libraries.
Author
Parents
Loading