diff options
author | Jon Chesterfield <jonathanchesterfield@gmail.com> | 2021-09-01 19:46:20 +0100 |
---|---|---|
committer | Jon Chesterfield <jonathanchesterfield@gmail.com> | 2021-09-01 19:46:21 +0100 |
commit | 0173e024fd9e779a94503040a532bcf125277f86 (patch) | |
tree | 17d85f872e10f11628ca03c0b95ea84b2e1841e6 /clang/unittests/Basic/FileManagerTest.cpp | |
parent | 8c7a7e1f67b12d250fbd6cbd3aed39dccacd53bf (diff) | |
download | llvm-0173e024fd9e779a94503040a532bcf125277f86.zip llvm-0173e024fd9e779a94503040a532bcf125277f86.tar.gz llvm-0173e024fd9e779a94503040a532bcf125277f86.tar.bz2 |
[openmp] Accept directory for libomptarget-bc-path
The commandline flag to specify a particular openmp devicertl library
currently errors like:
```
fatal error: cannot open file
'./runtimes/runtimes-bins/openmp/libomptarget':
Is a directory
```
CommonArgs successfully appends the directory to the commandline args then
mlink-builtin-bitcode rejects it.
This patch is a point fix to that. If --libomptarget-amdgcn-bc-path=directory
then append the expected name for the current architecture and go on as before.
This is useful for test runners that don't hardcode the architecture.
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D109057
Diffstat (limited to 'clang/unittests/Basic/FileManagerTest.cpp')
0 files changed, 0 insertions, 0 deletions