llvm-project/clang/lib/Driver
Jon Chesterfield c7cbf1a03e [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
2021-09-01 21:22:35 +01:00
..
ToolChains [openmp] Accept directory for libomptarget-bc-path 2021-09-01 21:22:35 +01:00
Action.cpp [CUDA][HIP] Add -fuse-cuid 2021-02-08 22:26:12 -05:00
CMakeLists.txt [clang] NFC, move DarwinSDKInfo to lib/Basic 2021-07-20 13:22:48 -07:00
Compilation.cpp [clang] Remove redundant calls to c_str() (NFC) 2021-08-31 08:53:51 -07:00
Distro.cpp Add support of the future Debian (Debian 12 - Bookworm) 2021-08-16 09:11:31 +02:00
Driver.cpp [clang] Add a -canonical-prefixes option 2021-09-01 14:51:06 -04:00
DriverOptions.cpp
Job.cpp [clang][driver] NFC: Expose InputInfo in Job instead of plain filenames 2021-07-27 09:18:58 +02:00
Multilib.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
OptionUtils.cpp [NFC] Move OptionUtils from Basic to Driver 2019-12-23 08:11:23 -05:00
Phases.cpp [clang][ifs] Clang Interface Stubs ToolChain plumbing. 2019-10-08 15:23:14 +00:00
SanitizerArgs.cpp [asan][clang] Add flag to outline instrumentation 2021-07-14 13:36:34 -07:00
Tool.cpp [clang][driver] NFC: Move InputInfo.h from lib to include 2021-07-27 09:17:39 +02:00
ToolChain.cpp [clang][driver] NFC: Move InputInfo.h from lib to include 2021-07-27 09:17:39 +02:00
Types.cpp [Preprocessor] Implement -fminimize-whitespace. 2021-07-25 23:30:57 -05:00
XRayArgs.cpp [xray] Function coverage groups 2020-09-24 22:09:53 -04:00