diff options
author | Artem Belevich <tra@google.com> | 2020-01-22 12:44:22 -0800 |
---|---|---|
committer | Artem Belevich <tra@google.com> | 2020-01-28 10:11:42 -0800 |
commit | 12fefeef203ab4ef52d19bcdbd4180608a4deae1 (patch) | |
tree | ae7a32684e8ec5187b6fdd79ca5be8d9609c269e /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | |
parent | 66e47a57205b1c2a6be3c89413ae9d47b747ed38 (diff) | |
download | llvm-12fefeef203ab4ef52d19bcdbd4180608a4deae1.zip llvm-12fefeef203ab4ef52d19bcdbd4180608a4deae1.tar.gz llvm-12fefeef203ab4ef52d19bcdbd4180608a4deae1.tar.bz2 |
[CUDA] Assume the latest known CUDA version if we've found an unknown one.
This makes clang somewhat forward-compatible with new CUDA releases
without having to patch it for every minor release without adding
any new function.
If an unknown version is found, clang issues a warning (can be disabled
with -Wno-cuda-unknown-version) and assumes that it has detected
the latest known version. CUDA releases are usually supersets
of older ones feature-wise, so it should be sufficient to keep
released clang versions working with minor CUDA updates without
having to upgrade clang, too.
Differential Revision: https://reviews.llvm.org/D73231
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions