[HIP] Fix test rcom-detect.hip
authorYaxun (Sam) Liu <yaxun.liu@amd.com>
Wed, 13 Oct 2021 15:18:18 +0000 (11:18 -0400)
committerYaxun (Sam) Liu <yaxun.liu@amd.com>
Wed, 13 Oct 2021 19:01:07 +0000 (15:01 -0400)
commit1439df00fc5e6dfffeb6a99e3537f6de2e539785
tree7af6dae5c8fa3056a2fc6f833b12ee8376789ce8
parentd2e6f471b012579f950b81a2460393e0299f10d2
[HIP] Fix test rcom-detect.hip

This patches fixes https://bugs.llvm.org/show_bug.cgi?id=51404

Some builds use custom resource directory for clang, therefore the test
cannot assume default resource directory for clang. Use -resource-dir
to force it.

Differential Revision: https://reviews.llvm.org/D111726
clang/test/Driver/rocm-detect.hip